Skip to content

Commit

Permalink
Add step to upload to test.pypi.org (TopoToolbox#85)
Browse files Browse the repository at this point in the history
This uses twine to upload alongside an API token that is provided as a
secret in the testpypi environment.
  • Loading branch information
wkearn authored Nov 20, 2024
1 parent 06e8620 commit c39a95f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,24 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
upload-testpypi:
name: Upload release assets to test.pypi.org
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
environment: testpypi
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true
- name: Setup python
uses: actions/setup-python@v5
- name: Install twine
run: python -m pip install twine
- name: Upload release with twine
run: python -m twine upload --verbose dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_REPOSITORY: testpypi

0 comments on commit c39a95f

Please sign in to comment.