Skip to content

Commit

Permalink
fix env release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Jun 3, 2024
1 parent 78f764b commit be95a39
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build-and-release:
runs-on: ubuntu-latest
environment:
name: test-release-pypi
name: prod-release-pypi
permissions:
id-token: write

Expand All @@ -34,20 +34,16 @@ 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 $TEST_PYPI_API_TOKEN
poetry publish --repository testpypi --username __token__ --password ${{ secrets.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 $POETRY_PYPI_TOKEN
poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
- name: Check that installation from PyPI passes
run: |
Expand Down

0 comments on commit be95a39

Please sign in to comment.