Skip to content

Commit d9749f1

Browse files
authored
chore(ci): replace s3 with r2 (#57)
Signed-off-by: Kevin Cui <[email protected]>
1 parent 3a15b44 commit d9749f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ jobs:
1414
release:
1515
runs-on: macos-13
1616
steps:
17-
- name: Configure AWS Credentials
18-
uses: aws-actions/configure-aws-credentials@v4
19-
with:
20-
role-to-assume: "arn:aws:iam::${{ secrets.AWS_IAM_ACCOUNT_ID }}:role/github-action-oomol-lab-ovm"
21-
role-session-name: "github-action-oomol-lab-ovm"
22-
aws-region: us-east-1
17+
- name: Configure R2 Credentials
18+
run: |
19+
aws configure set aws_access_key_id ${{ secrets.R2_OOMOL_STATIC_S3_AK }}
20+
aws configure set aws_secret_access_key ${{ secrets.R2_OOMOL_STATIC_S3_SK }}
21+
aws configure set region auto
2322
2423
- name: Checkout
2524
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -69,5 +68,6 @@ jobs:
6968
run: |
7069
aws s3 cp \
7170
./out/ \
71+
--endpoint-url ${{ secrets.R2_OOMOL_STATIC_S3_ENDPOINT }} \
7272
s3://oomol-static/ovm-resources/ovm/$RELEASE_VERSION \
7373
--recursive --exclude "*" --include "ovm*"

0 commit comments

Comments
 (0)