狮子耗耗 2c256dd21a dev (#10)
* 更新主题配置文件

🔧配置更改
1. 隐藏页面下方的“在 Github 上”编辑按钮

* 更细顶栏配置文件

🐛配置修复
1. 删除无用配置信息

* 更新 CI 部署流程

🐛配置修复
1. 修复了 @vuepress/plugin-git 无法正常获取 Git 提交信息的问题
2024-11-09 08:43:14 +08:00

44 lines
1.2 KiB
YAML

name: deploying-doc
run-name: Deploying doc — ${{ github.run_id }}
on:
pull_request:
branches: main
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: 🚚 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: 🔧Install pnpm
with:
version: 9
run_install: false
- name: 🔧Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: 🔧Install dependencies
run: pnpm install
- name: 🔴Build doc
run: pnpm run docs:build
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.FTP_SERVER_NAME }}
username: ${{ secrets.FTP_SERVER_USERNAME }}
password: ${{ secrets.FTP_SERVER_PASSWORD }}
local-dir: ./src/.vuepress/dist/
server-dir: ./jingji/book/