|
|
|
@ -6,15 +6,34 @@ on:
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
test:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
- name: Setup
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
|
with:
|
|
|
|
|
node-version: "16.6.0"
|
|
|
|
|
node-version: "12.x"
|
|
|
|
|
|
|
|
|
|
- name: Install npm dependencies
|
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: test
|
|
|
|
|
steps:
|
|
|
|
|
- name: Setup
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
|
with:
|
|
|
|
|
node-version: "12.x"
|
|
|
|
|
|
|
|
|
|
- name: Install npm dependencies
|
|
|
|
|
run: yarn install
|
|
|
|
@ -23,6 +42,7 @@ jobs:
|
|
|
|
|
run: yarn run export
|
|
|
|
|
env:
|
|
|
|
|
NODE_ENV: production
|
|
|
|
|
NEXT_TELEMETRY_DISABLED: 1
|
|
|
|
|
|
|
|
|
|
- name: Deploy to pages
|
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
|