ci: 添加文档构建和部署的GitHub工作流
添加GitHub Actions工作流用于自动构建和部署文档,同时更新文档配置中的基础链接
This commit is contained in:
17
.github/workflows/docs.yml
vendored
Normal file
17
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Build and Deploy
|
||||
on: [push]
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: vuepress-deploy
|
||||
uses: jenkey2011/vuepress-deploy@master
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
TARGET_REPO: anghunk/CWD
|
||||
TARGET_BRANCH: gh-pages
|
||||
BUILD_SCRIPT: cd docs && npm install && npm run build
|
||||
BUILD_DIR: docs/.vitepress/dist/
|
||||
@@ -6,6 +6,7 @@ export default defineConfig({
|
||||
title: 'CWD 评论系统文档',
|
||||
description: '基于 Cloudflare Workers 的轻量级评论系统',
|
||||
lang: 'zh-CN',
|
||||
link: '/',
|
||||
head: [
|
||||
[
|
||||
'link',
|
||||
|
||||
Reference in New Issue
Block a user