aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/python-deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/python-deploy.yml')
-rw-r--r--.github/workflows/python-deploy.yml22
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 }}