ci: pushing builds to r2

This commit is contained in:
Chubby Granny Chaser 2024-11-09 05:07:41 +00:00
parent ed1d59f0d0
commit d96c1e36cd
No known key found for this signature in database

View File

@ -31,7 +31,8 @@ jobs:
- name: Push build to R2
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
run: aws s3 cp ./docs/screenshot.png s3://${{ vars.BUILDS_BUCKET_NAME }}/screenshot-$GITHUB_SHA.png --endpoint-url $S3_ENDPOINT --expires "$(date -d "7 days" --utc +'%Y-%m-%dT%H:%M:%SZ')"
run: |
aws s3 cp ./dist --recursive --include "*.png" s3://${{ vars.BUILDS_BUCKET_NAME }} --endpoint-url $S3_ENDPOINT --expires "$(date -d "7 days" --utc +'%Y-%m-%dT%H:%M:%SZ')"
- name: Install dependencies
run: yarn