We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90ab3d3 + ed55bda commit a5f7d3dCopy full SHA for a5f7d3d
1 file changed
.github/workflows/pythonpublish.yml
@@ -0,0 +1,30 @@
1
+name: Upload Python Package
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
+ release:
8
+ types: [created]
9
10
+jobs:
11
+ deploy:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v1
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 twine
23
+ pip install -r requirements.txt
24
+ - name: Build and publish
25
+ env:
26
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28
29
+ python setup.py sdist bdist_wheel
30
+ twine upload dist/*
0 commit comments