Update docs.yml
This commit is contained in:
37
.github/workflows/docs.yml
vendored
37
.github/workflows/docs.yml
vendored
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user