Update docs.yml

This commit is contained in:
anghunk
2026-01-21 14:58:24 +08:00
parent 899c2068da
commit 358b9baa88

View File

@@ -1,17 +1,26 @@
name: Build and Deploy name: Docs
on: [push]
on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:
jobs: jobs:
build-and-deploy: publish-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - uses: actions/checkout@v2
uses: actions/checkout@master # VuePress 需要完整提交历史来生成贡献者信息
with:
- name: vuepress-deploy fetch-depth: 0
uses: jenkey2011/vuepress-deploy@master - uses: imaegoo/vuepress-deploy@master
env: env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} ACCESS_TOKEN: ${{ secrets.TWIKOO_TOKEN }}
TARGET_REPO: anghunk/CWD TARGET_REPO: anghunk/CWD
TARGET_BRANCH: gh-pages TARGET_BRANCH: gh-pages
BUILD_SCRIPT: cd docs && npm install && npm run build BUILD_SCRIPT: cd docs && yarn && yarn build
BUILD_DIR: docs/.vitepress/dist/ BUILD_DIR: .vitepress/dist
CNAME: cwd.js.org