Skip to content

Commit

Permalink
Merge pull request #9557 from dhalbert/9.1.x-upload-branches
Browse files Browse the repository at this point in the history
Upload merged PR's to AWS for x.x.x branches
  • Loading branch information
dhalbert authored Aug 25, 2024
2 parents 31e9b15 + 23cff4c commit 6375c56
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/upload_aws/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ runs:
steps:
- name: Upload to S3
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'))
(github.event_name == 'push' && github.repository_owner == 'adafruit') &&
(github.ref == 'refs/heads/main' ||
(startswith(github.ref, 'refs/heads/') && endswith(github.ref, '.x'))) ||
(github.event_name == 'release' &&
(github.event.action == 'published' || github.event.action == 'rerequested'))
run: >-
[ -z "$AWS_ACCESS_KEY_ID" ] ||
aws s3 cp ${{ inputs.source }} s3://adafruit-circuit-python/bin/${{ inputs.destination }}
Expand Down

0 comments on commit 6375c56

Please sign in to comment.