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 5f822b3 commit 14bc7a1Copy full SHA for 14bc7a1
.github/workflows/release.yml
@@ -0,0 +1,29 @@
1
+name: Release Package
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v[0-9]+.[0-9]+.[0-9]+'
7
8
+jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v4
15
+ with:
16
+ python-version: '3.10'
17
+ - name: Install dependencies
18
+ run: |
19
+ pip install setuptools wheel twine
20
+ - name: Build package
21
22
+ python setup.py sdist bdist_wheel
23
+ - name: Publish to PyPI
24
+ if: startsWith(github.ref, 'refs/tags/v')
25
+ env:
26
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28
29
+ twine upload dist/*
0 commit comments