1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-14 10:20:29 +08:00

feat: sync

This commit is contained in:
chu fan
2023-09-07 19:09:50 +08:00
parent e3b2cfd34d
commit cbd014c163
2 changed files with 2 additions and 1 deletions

43
.github/workflows/github-deploy.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
## 参考资料https://v2.vuepress.vuejs.org/zh/guide/deployment.html#github-pages
name: Github-Page-Deploy
on:
push:
branches:
- master
- next
workflow_dispatch:
jobs:
deploy-github:
name: "部署到Github"
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.20.2
- name: PNPM Install
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true
# 运行构建脚本
- name: Build VuePress Site
run: ./scripts/bundle build_proxy
- name: Deploy to GitHub Page
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: pages/github
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}