Skip to content

Commit 587d1fe

Browse files
committed
feat: try r2 instead of firebase
1 parent c556215 commit 587d1fe

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,20 @@ jobs:
151151
id: prepare-distribution
152152
run: bash ./scripts/build/prepare-dist.sh --silent
153153

154-
- name: Upload to database
155-
run: bash ./scripts/build/upload-dist.sh ${{ env.PLUGIN_NAME }}
154+
- name: Configure AWS CLI for R2
155+
uses: aws-actions/configure-aws-credentials@v4
156+
with:
157+
aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
158+
aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
159+
aws-region: auto
160+
161+
- name: Upload files to R2
162+
run: |
163+
zip -r ${{ env.PLUGIN_NAME }}.zip .
164+
165+
# Upload specific files
166+
aws s3 cp ./${{ env.PLUGIN_NAME }}.zip s3://${{ secrets.R2_BUCKET_NAME }}/ \
167+
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com
156168
157169
- name: Upload Plugin Artifact
158170
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)