We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9495d1c commit c8b4b2eCopy full SHA for c8b4b2e
.github/workflows/python-release.yml
@@ -0,0 +1,28 @@
1
+# A workflow to automatically publish the package when a new version is
2
+# created
3
+name: Upload Python Package
4
+
5
+on:
6
+ release:
7
+ types: [created]
8
9
+jobs:
10
+ deploy:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v2
16
+ with:
17
+ python-version: '3.x'
18
+ - name: Install dependencies
19
+ run: |
20
+ python -m pip install --upgrade pip
21
+ pip install setuptools wheel twine
22
+ - name: Build and publish
23
+ env:
24
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26
27
+ python setup.py sdist
28
+ twine upload dist/*
0 commit comments