This repository was archived by the owner on Nov 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : [dev]
4
+
5
+ name : Deploy to Development
6
+
7
+ env :
8
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
9
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
10
+ DB_NAME : ${{ secrets.DB_NAME }}
11
+ DB_USER : ${{ secrets.DB_USER }}
12
+ DB_PASS : ${{ secrets.DB_PASS }}
13
+ DB_HOST : ${{ secrets.DB_HOST }}
14
+
15
+ defaults :
16
+ run :
17
+ working-directory : functions
18
+
19
+ jobs :
20
+ deploy :
21
+ name : Deploy
22
+ runs-on : ubuntu-latest
23
+
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v2
27
+ - name : Setup Node.js
28
+ uses : actions/setup-node@v1
29
+ with :
30
+ node-version : 12.x
31
+ - run : npm install
32
+ - run : npm test
33
+ - run : echo "{}" > env.json
34
+ - name : Serverless Deploy
35
+ run : npx serverless deploy --stage development
Original file line number Diff line number Diff line change 2
2
push :
3
3
branches : [master]
4
4
5
- name : Deploy with Serverless Framework
5
+ name : Deploy to Production
6
6
7
7
env :
8
8
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
30
30
node-version : 12.x
31
31
- run : npm install
32
32
- run : npm test
33
- - run : touch env.json
33
+ - run : echo "{}" > env.json
34
34
- name : Serverless Deploy
35
- run : npx serverless deploy
35
+ run : npx serverless deploy --stage production
You can’t perform that action at this time.
0 commit comments