NitWikit/.github/workflows/wiki-deploy.yml

61 lines
1.0 KiB
YAML
Raw Normal View History

2024-04-04 10:58:19 +08:00
name: Wiki Deploy
# 触发条件
2024-06-22 17:15:23 +08:00
on:
push:
2024-06-22 17:37:32 +08:00
branches: [ 'main' ]
2024-06-25 15:16:54 +08:00
paths:
- 'docs/**'
2024-07-10 13:24:20 +08:00
- 'docs-java/**'
- 'docs-bedrock/**'
2024-06-25 15:16:54 +08:00
- 'package.json'
2024-04-04 10:58:19 +08:00
# 设置权限
permissions:
contents: write
规范化 + 修复 (#81) * 规范化 (1/2) * 链接更新 * docs(contributor): contrib-readme-action has updated readme * Move plugin.yml.md * docs(contributor): contrib-readme-action has updated readme * Rename "扩展阅读" to "杂项" * Fix links * docs(contributor): contrib-readme-action has updated readme * Rename "反作弊" * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Move 进阶教程 to 杂项 * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Fix * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Fix Build * docs(contributor): contrib-readme-action has updated readme * Fix again (我谢谢你啊小杰) * docs(contributor): contrib-readme-action has updated readme * Fix * docs(contributor): contrib-readme-action has updated readme * 你个老6 * 好烦 * 你别一直触发 * 删除多余文件 * Fix #82 & Optimize * 服务器核心移动到正式开服中 * Fix Build * exp * Update * Move Script to plugin * Update * Optimize * preparation * process * start * Fix * 1 * 2 * 3 * 4 * 5 * Fix build * a * a * c * 不搞了 * a * a * c * Fix * ow * 尝试支持Velcel和Pages共同作用 * Update modules * Update * 排序 * 移动 反作弊 * Move * Move deploy * c * Fix * Correct * 排序 * move todo --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-10 10:26:44 +08:00
# 环境变量
env:
BASE_URL: NitWikit
2024-04-04 10:58:19 +08:00
# 任务
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
2024-08-13 13:06:32 +08:00
- name: "setup pnpm"
uses: "pnpm/action-setup@v4"
2024-08-13 13:06:32 +08:00
- name: "setup node"
uses: "actions/setup-node@v4"
2024-06-25 15:16:54 +08:00
with:
node-version: 20
# 安装 npm 包
2024-08-13 13:56:46 +08:00
- name: Install
run: pnpm install
# MarkdownLint 检查
- name: "MarkdownLint Check"
uses: "DavidAnson/markdownlint-cli2-action@v17"
with:
fix: true
globs: 'docs*/**/*.md'
# 构建
2024-08-13 13:56:46 +08:00
- name: Build
2024-10-06 15:30:37 +08:00
run: pnpm run build
2024-04-04 10:58:19 +08:00
# 部署
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build