We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 552df49 commit 9061056Copy full SHA for 9061056
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
1
+name: Publish
2
+on:
3
+ push:
4
+ tags:
5
+ - '*'
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+
12
+ - uses: actions/setup-python@v5
13
+ with:
14
+ python-version: 3.12
15
16
+ - run: |
17
+ pip install hatch
18
+ hatch build
19
+ - uses: actions/upload-artifact@v4
20
21
+ path: ./dist
22
23
+ pypi-publish:
24
+ needs: ['build']
25
+ environment: 'publish'
26
27
+ name: Upload release to PyPI
28
29
30
+ - uses: actions/download-artifact@v4
31
32
+ - name: Publish package to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
35
+ password: ${{ secrets.PYPI_TOKEN }}
36
+ packages_dir: artifact/
0 commit comments