10000 condition for release version of stubs upload to pypi · michthom/circuitpython@0515053 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0515053

Browse files
committed
condition for release version of stubs upload to pypi
1 parent bb2dbf4 commit 0515053

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
@@ -242,7 +242,7 @@ jobs:
242242
zip -9r circuitpython-stubs.zip circuitpython-stubs
243243
[ -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
244244
- name: Upload stubs to PyPi
245-
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit'
245+
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'))
246246
env:
247247
TWINE_USERNAME: ${{ secrets.pypi_username }}
248248
TWINE_PASSWORD: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)
0