Skip to content

Commit 6a4c504

Browse files
committed
배포 준비
1 parent bd0e739 commit 6a4c504

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
File renamed without changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deploy-client
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+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
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+
- name: Deploy to S3 and Invalidate Cloudfront in prod mode
28+
env:
29+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
30+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
31+
AWS_REGION: ap-northeast-2

0 commit comments

Comments
 (0)