Skip to content

Commit d5730cf

Browse files
xeeoDavideViolante
andauthored
Update yaml in README.md, fix deprecations (#24)
Co-authored-by: Davide Violante <[email protected]>
1 parent 1dd6240 commit d5730cf

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,34 @@ An example workflow to deploy a project with serverless:
1414

1515

1616
```yaml
17+
name: Deploy master branch
18+
1719
on:
1820
push:
1921
branches:
2022
- master
21-
name: Deploy master branch
23+
2224
jobs:
2325
deploy:
2426
name: deploy
2527
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
node-version: [12.x]
2631
steps:
27-
- uses: actions/checkout@master
28-
- name: npm install
29-
run: npm install
32+
- uses: actions/checkout@v2
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- run: npm ci
3038
- name: serverless deploy
3139
uses: serverless/github-action@master
3240
with:
3341
args: deploy
3442
env:
3543
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
36-
# or if using AWS creds directly
44+
# or if using AWS credentials directly
3745
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
3846
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3947
```

0 commit comments

Comments
 (0)