Created
October 21, 2019 19:20
-
-
Save stewartnoll/8d6610fa82e6ca543a5ac840e47fd68d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Master CI/CD | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
primary: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: install dependencies | |
run: yarn install | |
- name: lint | |
run: yarn lint | |
- name: test | |
run: yarn test | |
- name: generate | |
run: yarn generate | |
- name: serverless deploy | |
run: npx serverless deploy | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment