Skip to content

Commit

Permalink
update workflow for dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
petrnymsa committed Jan 8, 2020
1 parent 602a31b commit eee52db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ jobs:
pip install pytest
python -m pytest
- name: Upload to test pypi
if: github.ref == 'refs/heads/dev'
env:
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload --skip-existing -r testpypi dist/*
- name: Upload to pypi
if: github.ref == 'refs/heads/master'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload --skip-existing dist/*

0 comments on commit eee52db

Please sign in to comment.