Skip to content

Commit c31ef0f

Browse files
committed
s3 scene
1 parent bc63130 commit c31ef0f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/nodejs-hello-world.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@ jobs:
2727

2828
- name: Run the app
2929
run: node index.js
30-
30+
31+
- name: Configure AWS credentials
32+
uses: aws-actions/configure-aws-credentials@v1
33+
with:
34+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
35+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
36+
37+
- name: Sync build to S3
38+
run: |
39+
aws s3 sync ./build s3://${{ secrets.S3_BUCKET_NAME }} --delete

0 commit comments

Comments
 (0)