From d96c1e36cd516f704433465f7d08983cd84add4e Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sat, 9 Nov 2024 05:07:41 +0000 Subject: [PATCH] ci: pushing builds to r2 --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 936c0ab6..396702ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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