Skip to content

Deploy

Deploy #34

Workflow file for this run

name: Deploy
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
deploydocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
version: 6.32.9
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: 'yarn'
- name: 🚓loading denpendencies
run: yarn
- name: 🚕build docs
run: yarn docs:build
- name: 🚄deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist