Skip to content

Commit 4efb2fc

Browse files
committed
chore: switch to official aws github action (#1904)
1 parent 81256ae commit 4efb2fc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build_release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
build_web:
2929
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
id-token: write # aws
3033
steps:
3134
- uses: actions/checkout@v4
3235

@@ -49,15 +52,15 @@ jobs:
4952
- name: Build dist bundle
5053
run: pnpm build
5154

52-
- name: Upload dist bundle to S3
53-
uses: jakejarvis/[email protected]
55+
- name: Configure AWS Credentials
56+
uses: aws-actions/configure-aws-credentials@v4
5457
with:
55-
args: --acl public-read --follow-symlinks --delete
56-
env:
57-
SOURCE_DIR: dist
58-
AWS_S3_BUCKET: ${{ inputs.is_main_build && 'beta.vger.app' || 'vger.app'}}
59-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
60-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
58+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
59+
aws-region: us-east-1
60+
61+
- name: Upload dist bundle to S3
62+
run: |
63+
aws s3 sync dist/ s3://${{ inputs.is_main_build && 'beta.vger.app' || 'vger.app'}}/ --delete
6164
6265
- name: Compress artifacts
6366
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
permissions:
121121
contents: write # needed for create_release, even though it won't be called
122122
packages: write # docker release
123+
id-token: write # aws
123124

124125
push_release:
125126
needs: [bump_src, app_build, app_version]

0 commit comments

Comments
 (0)