2021-07-04 15:48:06 +00:00
|
|
|
name: cd
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cd:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup node env
|
|
|
|
uses: actions/setup-node@v2.1.2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
2021-07-04 16:00:58 +00:00
|
|
|
working-directory: ./nuxt
|
2021-07-04 15:48:06 +00:00
|
|
|
|
|
|
|
- name: Generate
|
|
|
|
run: yarn run generate
|
2021-07-04 16:00:58 +00:00
|
|
|
working-directory: ./nuxt
|
2021-07-04 15:48:06 +00:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-07-04 16:08:59 +00:00
|
|
|
publish_dir: ./nuxt/dist
|