We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6fa3396 + 52c8bbb commit 8a36743Copy full SHA for 8a36743
.github/workflows/pypi.yaml
@@ -0,0 +1,28 @@
1
+name: Publish Release
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - '*.*.*'
7
8
+jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v2
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v2
16
+ with:
17
+ python-version: '3.12'
18
+ - name: Install dependencies
19
+ run: |
20
+ python -m pip install --upgrade pip
21
+ pip install setuptools wheel twine
22
+ - name: Build package
23
+ run: python setup.py sdist bdist_wheel
24
+ - name: Upload to PyPI
25
+ env:
26
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28
+ run: twine upload dist/*
0 commit comments