Skip to content

Commit

Permalink
[WIP] Tweak S3 upload to upload by both commit and branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Dec 31, 2023
1 parent 2d41091 commit ebb1208
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ jobs:
--endpoint "$S3_ENDPOINT" \
--recursive \
artifacts/brioche/ \
"s3://brioche-dev-development-content/github.com/brioche-dev/brioche/$GITHUB_SHA/"
"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/"
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 ebb1208

Please sign in to comment.