Skip to content

Update github-pages.yml #579

Update github-pages.yml

Update github-pages.yml #579

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 设置 Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: 安装依赖
run: |
corepack enable
yarn set version stable
yarn install --frozen-lockfile
- name: 构建文档
run: yarn run docs:build
- name: 部署文档
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vuepress/dist
cname: pterodactyl.top