We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782583b commit dc4ba3cCopy full SHA for dc4ba3c
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,27 @@
1
+name: Publish releases to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published, prereleased]
6
7
+jobs:
8
+ build-and-publish:
9
+ name: Builds and publishes releases to PyPI
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@master
13
+ - name: Set up Python 3.8
14
+ uses: actions/setup-python@v2.2.2
15
+ with:
16
+ python-version: 3.8
17
+ - name: Install wheel
18
+ run: >-
19
+ pip install wheel
20
+ - name: Build
21
22
+ python3 setup.py sdist bdist_wheel
23
+ - name: Publish release to PyPI
24
+ uses: pypa/gh-action-pypi-publish@master
25
26
+ user: __token__
27
+ password: ${{ secrets.PYPI_TOKEN }}
0 commit comments