We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e019584 commit 8f7abdeCopy full SHA for 8f7abde
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
1
+#
2
+# Workflow to publish the package to PyPi on a tag.
3
4
+
5
+name: Publish to PyPi
6
7
+on:
8
+ push:
9
+ tags: [ 'v*']
10
11
+jobs:
12
13
+ deploy:
14
15
+ runs-on: ubuntu-latest
16
17
+ environment:
18
+ name: pypi
19
20
+ permissions:
21
+ id-token: write
22
23
+ steps:
24
+ - uses: actions/checkout@v6
25
26
+ - uses: actions/setup-python@v6
27
+ with:
28
+ python-version: "3.13"
29
30
+ - uses: abatilo/actions-poetry@v4
31
32
+ poetry-version: "2.3.1"
33
+ - run: poetry build
34
35
+ # PyPi authentication is done through a trusted publisher and a Github environment:
36
+ - uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments