diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 22:35:40 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 22:35:40 +0000 |
| commit | 4898a3c9fb87844299e543c49e72cf58db7feae8 (patch) | |
| tree | 0689e6a935bb2eea64e764d4a76656314ec660b1 | |
| parent | set pypi token (test pypi) (diff) | |
| download | SyncRNG-4898a3c9fb87844299e543c49e72cf58db7feae8.tar.gz SyncRNG-4898a3c9fb87844299e543c49e72cf58db7feae8.zip | |
add separate build target for release candidates
| -rw-r--r-- | .github/workflows/python-deploy.yml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/.github/workflows/python-deploy.yml b/.github/workflows/python-deploy.yml index 5c97835..1ca066d 100644 --- a/.github/workflows/python-deploy.yml +++ b/.github/workflows/python-deploy.yml @@ -56,11 +56,11 @@ jobs: with: path: python/dist/*.tar.gz - upload_pypi: + upload_testpypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest # upload to PyPI on every tag starting with 'v' - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && contains(github.event.ref, '-rc.') steps: - uses: actions/download-artifact@v2 with: @@ -71,4 +71,20 @@ jobs: with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ ## temporary + repository_url: https://test.pypi.org/legacy/ + + upload_pypi: + needs: [build_wheels, build_sdist] + runs-on: ubuntu-latest + # upload to PyPI on every tag starting with 'v' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && !contains(github.event.ref, '-rc.') + steps: + - uses: actions/download-artifact@v2 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} |
