Skip to content

Commit 87825f5

Browse files
committed
[CHORE]#39 깃액션 수정(db pull, db generate 추가)
1 parent 9ff2a47 commit 87825f5

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

.github/workflows/deploy.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,25 @@ jobs:
4747
cat << EOF >> .production.env
4848
${{ secrets.ENV }}
4949
50+
- name: npm install
51+
working-directory: ./
52+
run: npm i
53+
54+
- name: db pull
55+
working-directory: ./
56+
run: npm run db:dev:pull
57+
58+
- name: db generate
59+
working-directory: ./
60+
run: npm run db:dev:generate
61+
62+
- name: lint
63+
working-directory: ./
64+
run: npm run lint
65+
5066
- name: build
5167
working-directory: ./
52-
run: |
53-
npm i
54-
npm run build
68+
run: npm run build
5569

5670
# - name: pull and genrate DB
5771
# run: |
@@ -85,4 +99,4 @@ jobs:
8599
86100
- name: Deploy
87101
run: |
88-
aws deploy create-deployment --application-name stop_right_there --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name stop_right_there_server --s3-location bucket=${{env.AWS_BUCKET_NAME}},bundleType=zip,key=stop-right-there-back/server.zip
102+
aws deploy create-deployment --application-name stop_right_there --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name stop_right_there_server --s3-location bucket=${{env.AWS_BUCKET_NAME}},bundleType=zip,key=stop-right-there-back/server.zip

.github/workflows/dev_pr.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: DEV PR
1+
name: DEV PR
22

3-
on:
4-
pull_request:
5-
branches: ['dev']
3+
on:
4+
pull_request:
5+
branches: ['dev']
66

77
jobs:
88
build:
@@ -29,22 +29,26 @@ jobs:
2929
cat << EOF >> .production.env
3030
${{ secrets.ENV }}
3131
32-
33-
3432
- name: npm install
3533
working-directory: ./
3634
run: npm i
3735

36+
- name: pull prisma
37+
working-directory: ./
38+
run: npm run db:dev:pull
39+
40+
- name: generate prisma
41+
working-directory: ./
42+
run: npm run db:dev:generate
43+
3844
- name: lint
39-
working-directory: ./
45+
working-directory: ./
4046
run: npm run lint
4147

42-
4348
- name: build
4449
working-directory: ./
4550
run: npm run build
46-
47-
51+
4852
- name: if fail
4953
uses: actions/[email protected]
5054
with:

0 commit comments

Comments
 (0)