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