Skip to content

Commit 78afe4e

Browse files
committed
add test.pypi.org upload step
1 parent 4ae9c91 commit 78afe4e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/tests+artifacts.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,18 @@ jobs:
8484
name: dist
8585
path: dist
8686
- run: twine check --strict dist/*
87+
88+
dist_upload:
89+
runs-on: ubuntu-latest
90+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
91+
needs: [dist_check]
92+
steps:
93+
- uses: actions/download-artifact@v2
94+
with:
95+
name: dist
96+
path: dist
97+
- uses: pypa/gh-action-pypi-publish@master
98+
with:
99+
user: __token__
100+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
101+
repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)