-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.16 KB
/
dev-cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: dev-CD
on:
push:
branches: [develop]
jobs:
cd:
runs-on: ubuntu-20.04
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_DEV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}
aws-region: ap-northeast-2
- name: Checkout
uses: actions/[email protected]
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node modules
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Build
run: |
yarn build:dev
- name: Deploy
run: |
aws s3 sync --delete ./build s3://pycon-dev2024.pycon.kr --region ap-northeast-2
# - name: Deploy to pay
# run: |
# aws s3 sync --delete ./build s3://pyconkr-payment --region ap-northeast-2