Skip to content

Commit

Permalink
Pre_CC:
Browse files Browse the repository at this point in the history
Update BuildPackage.yml
  • Loading branch information
hoffstadt authored Aug 20, 2021
1 parent a2a3854 commit ceb22f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/BuildPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:

- name: PyPi Deployment
shell: cmd
if: "contains(github.event.inputs.deploy, 'true')"
if: ${{contains(github.event.inputs.deploy, 'true') && github.ref == 'refs/heads/master'}}
run: |
python -m pip install twine
python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing
- name: Test PyPi Deployment
shell: cmd
if: "contains(github.event.inputs.deploytest, 'true')"
if: ${{contains(github.event.inputs.deploytest, 'true') && github.ref == 'refs/heads/master'}}
run: |
python -m pip install twine
python -m twine upload --repository testpypi dist/* -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }} --skip-existing
python -m twine upload --repository testpypi dist/* -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }} --skip-existing

0 comments on commit ceb22f4

Please sign in to comment.