Skip to content

Commit 1003b84

Browse files
blink1073lwasser
authored andcommitted
address review
1 parent 1900f82 commit 1003b84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ jobs:
7474
name: >-
7575
Sign the Python 🐍 distribution 📦 with Sigstore
7676
and upload them to GitHub Release
77-
if: github.repository_owner == 'pyopensci'
77+
# Only sign on release
78+
if: github.repository_owner == 'pyopensci' && github.event_name == 'release'
79+
environment: pypi
7880
needs:
7981
- publish
8082
runs-on: ubuntu-latest
@@ -94,8 +96,6 @@ jobs:
9496
./dist/*.tar.gz
9597
./dist/*.whl
9698
- name: Upload artifact signatures to GitHub Release
97-
# Only upload on release
98-
if: github.event_name == 'release'
9999
env:
100100
GITHUB_TOKEN: ${{ github.token }}
101101
# Upload to GitHub Release using the `gh` CLI.

0 commit comments

Comments
 (0)