Adding github pages deploy workflow
This commit is contained in:
parent
930fe1b8bf
commit
b4d3efb30b
36
.github/workflows/cd.yml
vendored
Normal file
36
.github/workflows/cd.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
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: Switch folder
|
||||||
|
uses: cd nuxt
|
||||||
|
|
||||||
|
- name: Setup node env
|
||||||
|
uses: actions/setup-node@v2.1.2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
|
|
||||||
|
- name: Generate
|
||||||
|
run: yarn run generate
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./dist
|
Loading…
Reference in New Issue
Block a user