Skip to content

Commit

Permalink
feature #1 - add serverless deploy CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 17, 2022
1 parent d1d9131 commit a31b1af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/serverless-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: serverless-deploy

on:
push:
branches:
- master

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- 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 --stage devel
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lint-fix": "tslint --fix src/**/*.ts test/**/*.ts -t verbose",
"test": "jest",
"typecheck": "tsc --noEmit",
"deploy": "clear && sls deploy --verbose"
"deploy": "clear && sls deploy --verbose",
"ci": "yarn typecheck && yarn lint && yarn test"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
Expand Down

0 comments on commit a31b1af

Please sign in to comment.