Skip to content

Commit 1c51a92

Browse files
committed
Fix: add environment
1 parent c42e9d0 commit 1c51a92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
# This ensures that the publish action only runs in the main repository
1212
# rather than forks
13+
# Environment is encouraged so adding
14+
environment: release
1315
if: github.repository_owner == 'pyopensci'
1416
permissions:
1517
id-token: write # this permission is mandatory for pypi publishing
@@ -40,8 +42,8 @@ jobs:
4042
echo ""
4143
echo "Generated files:"
4244
ls -lh dist/
43-
44-
- name: Publish package on test PyPI on merge in main branch # optional
45+
46+
- name: Publish package on test PyPI on merge in main branch
4547
# Test push to test pypi on merge to main
4648
if: github.event_name == 'push'
4749
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)