We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b83db commit 80a0113Copy full SHA for 80a0113
1 file changed
.github/workflows/pypi-publish.yml
@@ -0,0 +1,35 @@
1
+name: pypi-publish
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+jobs:
9
+ publish:
10
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
11
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v2
16
17
+ - uses: actions/setup-python@v2
18
+ with:
19
+ python-version: 3.9
20
21
+ - name: "Installs and upgrades pip, dependencies and the package"
22
+ run: |
23
+ python3 -m pip install --upgrade pip
24
+ python3 -m pip install setuptools wheel twine
25
+ pip install -r requirements.txt
26
+ python3 setup.py install
27
28
+ - name: Build and publish package
29
30
+ python3 setup.py sdist bdist_wheel
31
+ python3 -m twine upload dist/*
32
+ env:
33
+ TWINE_USERNAME: __token__
34
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
35
+ TWINE_REPOSITORY: pypi
0 commit comments