Skip to content

Commit 7b3f42e

Browse files
committed
sst ci
1 parent e8de829 commit 7b3f42e

File tree

1 file changed

+28
-35
lines changed

1 file changed

+28
-35
lines changed

.github/workflows/sst.yml

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
11
name: Deploy SST
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
-
14-
name: Checkout repository
15-
uses: actions/checkout@v2
16-
17-
-
18-
name: Set up Node.js
19-
uses: actions/setup-node@v2
20-
with:
21-
node-version: '16'
22-
23-
-
24-
name: Change directory
25-
run: cd ./client
26-
27-
-
28-
name: Install dependencies
29-
run: cd ./client && npm install
30-
31-
-
32-
name: Install SST
33-
run: cd ./client && npm install --global @serverless-stack/cli
34-
35-
-
36-
name: Deploy SST
37-
env:
38-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
39-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40-
run: cd ./client && npx sst deploy --stage prod
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
working-directory: ./client
24+
25+
- name: Install SST CLI
26+
run: npm install --global @serverless-stack/cli
27+
28+
- name: Deploy SST
29+
env:
30+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
31+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
32+
run: npx sst deploy --stage prod
33+
working-directory: ./client

0 commit comments

Comments
 (0)