Skip to content

Commit

Permalink
Update build.yml (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry authored Apr 17, 2023
1 parent c4be348 commit 1636b81
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ jobs:
- name: run pytest
run: |
pytest
# - name: set pypi test repo defaults
# run: |
# echo "pypi_repo=testpypi" >> $GITHUB_ENV
# echo "pypi_token=${{ secrets.TESTPYPI_UPLOAD }}" >> $GITHUB_ENV
# - name: set pypi main repo for release
# if: github.event_name == 'release'
# run: |
# echo "pypi_repo=pypi" >> $GITHUB_ENV
# echo "pypi_token=${{ secrets.PYPI_UPLOAD }}" >> $GITHUB_ENV
# - name: pypi release
# if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'release')
# run: |
# python -m twine upload --repository $pypi_repo dist/* -u __token__ -p $pypi_token
- name: set pypi test repo defaults
run: |
echo "pypi_repo=testpypi" >> $GITHUB_ENV
echo "pypi_token=${{ secrets.TESTPYPI_UPLOAD }}" >> $GITHUB_ENV
- name: set pypi main repo for release
if: github.event_name == 'release'
run: |
echo "pypi_repo=pypi" >> $GITHUB_ENV
echo "pypi_token=${{ secrets.PYPI_UPLOAD }}" >> $GITHUB_ENV
- name: pypi release
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'release')
run: |
python -m twine upload --repository $pypi_repo dist/* -u __token__ -p $pypi_token

0 comments on commit 1636b81

Please sign in to comment.