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