|
|
@ -6,15 +6,34 @@ on:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup
|
|
|
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
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
|
|
|
|
- name: Install npm dependencies
|
|
|
|
run: yarn install
|
|
|
|
run: yarn install
|
|
|
@ -23,6 +42,7 @@ jobs:
|
|
|
|
run: yarn run export
|
|
|
|
run: yarn run export
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
NODE_ENV: production
|
|
|
|
NODE_ENV: production
|
|
|
|
|
|
|
|
NEXT_TELEMETRY_DISABLED: 1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Deploy to pages
|
|
|
|
- name: Deploy to pages
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|