Skip to content

Commit

Permalink
Add upload to Test PYPI
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed Dec 17, 2019
1 parent 657d9bb commit f081468
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools twine
- name: Build and publish
- name: Build and publish to Test PYPI
env:
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload --repository_url https://test.pypi.org/legacy/ dist/*
- name: Build and publish to PYPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit f081468

Please sign in to comment.