From 1c51a9297d51ff71524ff7f9123a91cd0cd0004d Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 26 Feb 2024 16:26:09 -0700 Subject: [PATCH] Fix: add environment --- .github/workflows/publish-pypi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index adbc7be..b9e548b 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest # This ensures that the publish action only runs in the main repository # rather than forks + # Environment is encouraged so adding + environment: release if: github.repository_owner == 'pyopensci' permissions: id-token: write # this permission is mandatory for pypi publishing @@ -40,8 +42,8 @@ jobs: echo "" echo "Generated files:" ls -lh dist/ - - - name: Publish package on test PyPI on merge in main branch # optional + + - name: Publish package on test PyPI on merge in main branch # Test push to test pypi on merge to main if: github.event_name == 'push' uses: pypa/gh-action-pypi-publish@release/v1