We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8658a02 + 5fe53c8 commit a9df3afCopy full SHA for a9df3af
.github/workflows/tests.yml
@@ -3,6 +3,7 @@ name: Tests
3
on:
4
push:
5
branches: [master]
6
+ tags: ["*"]
7
pull_request:
8
9
env:
@@ -42,3 +43,27 @@ jobs:
42
43
- name: Test with pytest
44
run: |
45
python3 -m pytest -v
46
+
47
+ publish:
48
+ runs-on: ubuntu-latest
49
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
50
+ needs: tests
51
+ permissions:
52
+ id-token: write
53
54
+ steps:
55
+ - name: Checkout
56
+ uses: actions/checkout@v4
57
58
+ - name: Set up Python 3.10
59
+ uses: actions/setup-python@v5
60
+ with:
61
+ python-version: "3.10"
62
63
+ - name: Build packages
64
+ run: |
65
+ python3 -m pip install build
66
+ python3 -m build
67
68
+ - name: Publish package distributions to PyPI
69
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments