We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d17968 commit c788d9fCopy full SHA for c788d9f
.github/workflows/pypi_dist.yml
@@ -0,0 +1,24 @@
1
+name: Upload Python Package (SDIST)
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ deploy:
9
+ runs-on: ubuntu-20.04
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v2
14
+ with:
15
+ python-version: "3.7"
16
+ - name: Install dependencies
17
+ run: |
18
+ python -m pip install --upgrade pip
19
+ python setup.py sdist
20
+ - name: Publish distribution to PyPI
21
+ if: startsWith(github.ref, 'refs/tags')
22
+ uses: pypa/gh-action-pypi-publish@master
23
24
+ password: ${{ secrets.pypi_password }}
0 commit comments