Skip to content

Commit 8757e72

Browse files
GHA PyPi release
1 parent 3a959a5 commit 8757e72

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,23 @@ jobs:
4242
uses: actions/upload-artifact@v4
4343
with:
4444
name: coverage-report
45-
path: .coverage
45+
path: .coverage
46+
47+
deploy:
48+
runs-on: ubuntu-18.04
49+
needs: test
50+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.8'
51+
52+
steps:
53+
- name: Install dependencies
54+
run: pip install twine wheel
55+
56+
- name: Setup deployment
57+
run: python setup.py sdist bdist_wheel
58+
59+
- name: Validate deployment
60+
run: twine check dist/*
61+
62+
- name: Run deployment
63+
run:
64+
twine upload dist/* -r pypi -u __token__ -p ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)