Skip to content

1.4.0

1.4.0 #15

Workflow file for this run

name: Build and Deploy Docs
on:
release:
types: [released]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: docs/package-lock.json
- name: Install and Build
run: |
cd docs
npm install
npm run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs/docs/.vitepress/dist'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: './docs/docs/.vitepress/dist'