There was an error while loading. Please reload this page.
1 parent 0e97048 commit 2d572e0Copy full SHA for 2d572e0
1 file changed
.github/workflows/release-pypi.yml
@@ -0,0 +1,22 @@
1
+# .github/workflows/release-pypi.yml
2
+name: Publish to PyPI on tag
3
+
4
+on:
5
+ push:
6
+ tags:
7
+ - "v*.*.*"
8
9
+jobs:
10
+ build-publish-pypi:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-python@v5
15
+ with:
16
+ python-version: "3.11"
17
+ - run: python -m pip install --upgrade build
18
+ - run: python -m build
19
+ - name: Publish to PyPI
20
+ uses: pypa/gh-action-pypi-publish@release/v1
21
22
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments