Skip to content

Add files via upload #2

Add files via upload

Add files via upload #2

Workflow file for this run

name: Deploy VitePress site to Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: yarn install
- name: Build with VitePress
run: yarn build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # 部署到的分支,通常是gh-pages
folder: .vitepress/dist # 构建输出的文件夹
clean: true # 在部署前清理gh-pages分支