Skip to content

Commit 6a48c69

Browse files
committed
tighten conditions under which pypi upload is attempted
1 parent a8e599a commit 6a48c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
128128
129129
- name: Upload stubs to PyPi
130-
if: github.event_name == 'push'
130+
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit'
131131
env:
132132
TWINE_USERNAME: ${{ secrets.pypi_username }}
133133
TWINE_PASSWORD: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)