Skip to content

Commit 85b03d1

Browse files
committed
new workflow
1 parent a1b1f85 commit 85b03d1

File tree

5 files changed

+58
-103
lines changed

5 files changed

+58
-103
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/deploy-staging.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy dev
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
deploy-dev:
13+
name: deploy-dev
14+
runs-on: ubuntu-latest
15+
environment: dev
16+
17+
strategy:
18+
matrix:
19+
node-version: [20.x]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm test
29+
- name: serverless deploy
30+
uses: serverless/[email protected]
31+
with:
32+
args: deploy -s $STAGE
33+
env:
34+
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
35+
36+
deploy-staging:
37+
name: deploy-staging
38+
runs-on: ubuntu-latest
39+
environment: staging
40+
needs: deploy-dev
41+
42+
strategy:
43+
matrix:
44+
node-version: [20.x]
45+
46+
steps:
47+
- uses: actions/checkout@v3
48+
- name: Use Node.js ${{ matrix.node-version }}
49+
uses: actions/setup-node@v3
50+
with:
51+
node-version: ${{ matrix.node-version }}
52+
- run: npm ci
53+
- name: serverless deploy
54+
uses: serverless/[email protected]
55+
with:
56+
args: deploy -s $STAGE
57+
env:
58+
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

.github/workflows/merge-master-to-staging.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/merge-staging-to-prod.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)