28 lines
652 B
YAML
28 lines
652 B
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js 16
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
- run: npm install -g yarn
|
|
- run: cd Documentation && yarn install --frozen-lockfile
|
|
- name: Build
|
|
run: cd Documentation && yarn docs:build
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: Documentation/docs/.vitepress/dist
|