Update docs.yml

This commit is contained in:
anghunk
2026-01-21 15:05:18 +08:00
parent 358b9baa88
commit e0cf619107

View File

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