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.
2 parents 87ca872 + c08d662 commit 94d7ca5Copy full SHA for 94d7ca5
.github/workflows/publish_to_pypi.yml
@@ -0,0 +1,27 @@
1
+name: Publish Python distributions to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ build-n-publish:
9
+ name: Build and publish Python distributions to PyPI
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Set up Python 3.8
14
+ uses: actions/setup-python@v1
15
+ with:
16
+ python-version: '3.8'
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: __token__
24
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25
26
+ python setup.py sdist bdist_wheel
27
+ twine upload dist/*
0 commit comments