Skip to content

Commit c178953

Browse files
committed
Add a publication workflow
1 parent 4714ee7 commit c178953

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@v2
10+
- uses: actions/setup-python@v2
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)