Skip to content

Commit a3d6f68

Browse files
committed
deploy-dev
1 parent 61d34a8 commit a3d6f68

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/deploy-dev.yml

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

0 commit comments

Comments
 (0)