tighten conditions under which pypi upload is attempted

This commit is contained in:
Jeff Epler 2021-06-24 11:08:34 -05:00
parent a8e599a3de
commit 6a48c69419
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ jobs:
[ -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
- name: Upload stubs to PyPi
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit'
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}