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 723dd1e commit 4e52c81Copy full SHA for 4e52c81
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish Package to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - '*'
7
8
+jobs:
9
+ build_and_publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v2
14
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v2
17
+ with:
18
+ python-version: 3.x
19
20
+ - name: Install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install wheel setuptools twine
24
25
+ - name: Build distribution package
26
27
+ python setup.py sdist bdist_wheel
28
29
+ - name: Publish to PyPI
30
+ env:
31
+ TWINE_USERNAME: __token__
32
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
33
34
+ twine upload dist/*
0 commit comments