Skip to content

Commit

Permalink
Update yaml in README.md, fix deprecations (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Davide Violante <[email protected]>
  • Loading branch information
xeeo and DavideViolante authored Sep 4, 2020
1 parent 1dd6240 commit d5730cf
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,34 @@ An example workflow to deploy a project with serverless:


```yaml
name: Deploy master branch

on:
push:
branches:
- master
name: Deploy master branch

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@master
- name: npm install
run: npm install
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: serverless deploy
uses: serverless/github-action@master
with:
args: deploy
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
# or if using AWS creds directly
# or if using AWS credentials directly
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
```
Expand Down

0 comments on commit d5730cf

Please sign in to comment.