2021-07-04 16:54:22 +00:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2021-07-04 16:55:08 +00:00
|
|
|
deploy:
|
2021-07-04 16:54:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 14.x
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm test
|
2021-07-04 17:18:36 +00:00
|
|
|
- run: |
|
2021-07-04 17:20:31 +00:00
|
|
|
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
2021-07-04 17:18:36 +00:00
|
|
|
npm run deploy
|
2021-07-04 16:57:47 +00:00
|
|
|
env:
|
|
|
|
GH_EMAIL: ${{ secrets.GH_EMAIL }}
|
|
|
|
GH_NAME: ${{ secrets.GH_NAME }}
|
2021-07-06 16:07:44 +00:00
|
|
|
GIT_USER: ${{ secrets.GH_NAME }}
|
2021-07-04 16:57:47 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|