Skip to content

Commit c49de1b

Browse files
committed
Update github actions for SSR deployment
1 parent a447865 commit c49de1b

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
name: CI
1+
name: Deploy Serverless SSR
22

33
on:
44
repository_dispatch:
55
types: netlify-complete
66

77
jobs:
8-
build:
8+
deploy:
9+
name: deploy
910
runs-on: ubuntu-latest
10-
1111
steps:
12-
- uses: actions/checkout@v1
13-
- name: Run a one-line script
14-
run: echo Hello, world!
15-
- name: Run a multi-line script
16-
run: |
17-
echo Add other actions to build,
18-
echo test, and deploy your project.
12+
- uses: actions/checkout@master
13+
- name: yarn install
14+
uses: borales/[email protected]
15+
with:
16+
cmd install
17+
- name: yarn download:stats
18+
uses: borales/[email protected]
19+
with:
20+
cmd download:stats
21+
- name: serverless deploy
22+
uses: serverless/github-action@master
23+
with:
24+
args: deploy
25+
env:
26+
# or if using AWS creds directly
27+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
28+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}

0 commit comments

Comments
 (0)