Skip to content

Commit 49f4888

Browse files
committed
deploy-prod
1 parent a3d6f68 commit 49f4888

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: deploy-prod
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
name: Deploy
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.11.1'
18+
19+
- name: Build & Export
20+
run: |
21+
yarn install
22+
yarn build
23+
24+
25+
- name: Deploy to S3 (Prod)
26+
env:
27+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
28+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
29+
AWS_REGION: ap-southeast-2
30+
run: |
31+
aws s3 sync ./dist s3://waffle-bucket2 --delete
32+
aws cloudfront create-invalidation --distribution-id E2T9L2MBC3XO1H --paths "/*"\

0 commit comments

Comments
 (0)