File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff 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+
1719on :
1820 push :
1921 branches :
2022 - master
21- name : Deploy master branch
23+
2224jobs :
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```
You can’t perform that action at this time.
0 commit comments