Skip to content

Commit da44834

Browse files
committed
action
1 parent 9760964 commit da44834

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

.github/workflows/sls.yml

+24-15
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1+
name: Deploy master branch
2+
13
on:
24
push:
35
branches:
46
- main
57
workflow_dispatch:
68
# This allows the workflow to be manually triggered
79

8-
name: Deploy master branch
9-
1010
jobs:
1111
deploy:
12-
name: deploy
12+
name: Deploy
1313
runs-on: ubuntu-latest
1414

15+
strategy:
16+
matrix:
17+
node-version: [18.x]
18+
1519
steps:
16-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm ci
1726

18-
# Deployment of your project
19-
- name: serverless deploy
20-
uses: serverless/github-action@master
21-
with:
22-
args: deploy
23-
env:
24-
# To link with your Serverless Framework account, equivalent to login
25-
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
26-
# The AWS Credentials
27-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
28-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27+
# Deployment of your project
28+
- name: Serverless deploy
29+
uses: serverless/github-action@master
30+
with:
31+
args: deploy
32+
env:
33+
# To link with your Serverless Framework account, equivalent to login
34+
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
35+
# The AWS Credentials
36+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
37+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)