Skip to content

fix 打包失败,处理无效链接 #25

fix 打包失败,处理无效链接

fix 打包失败,处理无效链接 #25

Workflow file for this run

name: Deploy docs
on:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: 'deploy-docs'
cancel-in-progress: true
permissions:
contents: write
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
- run: pnpm i
- run: pnpm build
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}