From be95a39eb4c46201587b4742c831f77ac734212f Mon Sep 17 00:00:00 2001 From: Peter Xenopoulos Date: Sun, 2 Jun 2024 20:52:00 -0400 Subject: [PATCH] fix env release workflow --- .github/workflows/release.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31f3cd21a..680202e39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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: |