diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9cb021b..24e9273 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -43,15 +43,14 @@ jobs: - uses: actions/upload-artifact@v3 with: {name: dist, path: dist/} - if: startsWith(github.ref, 'refs/tags/v') && - matrix.os == 'ubuntu-20.04' && + if: matrix.os == 'ubuntu-20.04' && matrix.python == '3.9' deploy: name: Upload release runs-on: ubuntu-latest needs: build - if: startsWith(github.ref, 'refs/tags/v') && success() + # if: startsWith(github.ref, 'refs/tags/v') && success() environment: name: pypi permissions: @@ -61,3 +60,5 @@ jobs: - uses: actions/download-artifact@v3 with: {name: dist, path: dist/} - uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/