We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 344df35 commit 75e9192Copy full SHA for 75e9192
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,19 @@
1
+# From https://www.seanh.cc/2022/05/21/publishing-python-packages-from-github-actions/
2
+
3
+name: Publish to PyPI.org
4
+on:
5
+ release:
6
+ types: [published]
7
+jobs:
8
+ pypi:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 0
15
+ - run: python3 -m pip install --upgrade build && python3 -m build
16
+ - name: Publish package
17
+ uses: pypa/gh-action-pypi-publish@release/v1
18
19
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments