-
Notifications
You must be signed in to change notification settings - Fork 31
48 lines (41 loc) · 1.13 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Docs
# Docs build and publishes the Vuepress documentation website.
# This workflow is run on every pull request and push on main.
# The deployment of the docs is made only on each push on main.
on:
pull_request:
push:
branches:
- main
jobs:
Markdown-Link-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/[email protected]
with:
use-quit-mode: "yes"
folder-path: "doc"
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node 🧰
uses: actions/setup-node@v3
with:
node-version: 12
- name: Build 🔧
run: |
npm install
npm ci
npm run docs:build
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/.vuepress/dist