Skip to content

Commit c54d7b7

Browse files
committed
Add a publication workflow
1 parent a227211 commit c54d7b7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/publication.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publication
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.8'
13+
- run: python -m pip install --upgrade tox-gh-actions
14+
- env:
15+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
16+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
17+
run: tox -e publish -- upload

0 commit comments

Comments
 (0)