Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Commit a736bc9

Browse files
committed
Merge branch 'master' of https://github.com/bharatari/utd-grades
2 parents ff8f8a1 + 28d96cb commit a736bc9

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
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+
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

.github/workflows/deploy.yml renamed to .github/workflows/deploy-prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on:
22
push:
33
branches: [master]
44

5-
name: Deploy with Serverless Framework
5+
name: Deploy to Production
66

77
env:
88
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -30,6 +30,6 @@ jobs:
3030
node-version: 12.x
3131
- run: npm install
3232
- run: npm test
33-
- run: touch env.json
33+
- run: echo "{}" > env.json
3434
- name: Serverless Deploy
35-
run: npx serverless deploy
35+
run: npx serverless deploy --stage production

0 commit comments

Comments
 (0)