We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c36187 commit a31a6a2Copy full SHA for a31a6a2
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,32 @@
1
+name: Publish to PyPI
2
+
3
+on: push
4
5
+jobs:
6
+ publish-pypi:
7
+ name: Publish to PyPI
8
+ runs-on: ubuntu-latest
9
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@master
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v1
16
+ with:
17
+ python-version: 3.8
18
19
+ - name: Build source distributions and wheels
20
+ run: python setup.py bdist_wheel
21
22
+ - name: Publish to Test PyPI
23
+ uses: pypa/gh-action-pypi-publish@master
24
25
+ password: ${{ secrets.test_pypi_password }}
26
+ repository_url: https://test.pypi.org/legacy/
27
28
+ - name: Publish to PyPI
29
+ if: startsWith(github.ref, 'refs/tags')
30
31
32
+ password: ${{ secrets.pypi_password }}
0 commit comments