Skip to content

Create deploy.yaml

Create deploy.yaml #1

Workflow file for this run

name: Deploy
on:
push:
branches: [ "master" ]
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: install
working-directory: ./docs
run:
yarn install
- name: Build
working-directory: ./docs
run: yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist