diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bc1bba..346d325 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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