We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccfc811 commit 012296cCopy full SHA for 012296c
1 file changed
.github/workflows/pypi-release.yml
@@ -0,0 +1,29 @@
1
+name: Publish Python package
2
+
3
+on:
4
+ release:
5
+ types: [ published ]
6
7
+permissions:
8
+ contents: read
9
10
+jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.x"
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install setuptools wheel
23
+ - name: Build a binary wheel
24
+ run: >-
25
+ python setup.py sdist bdist_wheel
26
+ - name: Publish to PyPI
27
+ uses: pypa/gh-action-pypi-publish@release/v1
28
29
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments