Skip to content

Commit

Permalink
Tweak GitHub Actions workflow to only upload brioche-pack under commi…
Browse files Browse the repository at this point in the history
…t hash
  • Loading branch information
kylewlacy committed Dec 31, 2023
1 parent 450e0f6 commit e785787
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,21 @@ jobs:
with:
name: brioche
path: artifacts/brioche
# Upload all artifacts under the branch name, and upload a subset under the commit hash.
- name: Upload to S3
run: |
aws s3 cp \
--endpoint "$S3_ENDPOINT" \
--recursive \
artifacts/brioche/ \
"s3://brioche-dev-development-content/github.com/brioche-dev/brioche/commits/$GITHUB_SHA/"
aws s3 sync \
--endpoint "$S3_ENDPOINT" \
--delete \
artifacts/brioche/ \
"s3://brioche-dev-development-content/github.com/brioche-dev/brioche/branches/$GITHUB_REF_NAME/"
rm artifacts/brioche/*/brioche
aws s3 cp \
--endpoint "$S3_ENDPOINT" \
--recursive \
artifacts/brioche/ \
"s3://brioche-dev-development-content/github.com/brioche-dev/brioche/commits/$GITHUB_SHA/"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_S3_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit e785787

Please sign in to comment.