Skip to content

Commit

Permalink
fix release workflow secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Jun 3, 2024
1 parent 9b42803 commit 78f764b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,20 @@ jobs:
poetry install --no-interaction
- name: Publish to test PyPI
env:
TEST_POETRY_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
poetry publish --repository testpypi --username __token__ --password ${{ secrets.TEST_PYPI_API_TOKEN }}
poetry publish --repository testpypi --username __token__ --password $TEST_PYPI_API_TOKEN
- name: Check that installation from test PyPI passes
run: |
poetry add awpy --source testpypi
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
poetry publish --username __token__ --password $POETRY_PYPI_TOKEN
- name: Check that installation from PyPI passes
run: |
Expand Down

0 comments on commit 78f764b

Please sign in to comment.