Skip to content

Commit 32dd374

Browse files
authored
Merge pull request #5845 from dhalbert/stubs-to-pypi-only-on-rlease
Push stubs to pypi only on a release
2 parents 1022866 + 8c8997f commit 32dd374

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
@@ -241,7 +241,7 @@ jobs:
241241
zip -9r circuitpython-stubs.zip circuitpython-stubs
242242
[ -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
243243
- name: Upload stubs to PyPi
244-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
244+
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
245245
env:
246246
TWINE_USERNAME: ${{ secrets.pypi_username }}
247247
TWINE_PASSWORD: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)