Skip to content

Commit

Permalink
嘗試自動部署 github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MROS committed Sep 15, 2024
1 parent 1826800 commit 2919e42
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
#
name: Deploy VitePress site to Pages

on:
# 在针对 `main` 分支的推送上运行。如果你
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
push:
branches: [main]

# 允许你从 Actions 选项卡手动运行此工作流程
workflow_dispatch:

# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
concurrency:
group: pages
cancel-in-progress: false

jobs:
# 构建工作
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: pnpm install
- name: Build with VitePress
run: pnpm docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: book/.vitepress/dist

# 部署工作
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions book/大品天仙訣之臆想.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

總訣提出的法門實則是可分爲兩條路子,一是氣道,一是體道。修道之初(築基),應當理解並實作氣、體之間的區別與介面,再來分別學習氣、體兩道,最終將兩道合而爲一,就等於自己從無到有構造了一台計算機。以下是圖解:

![天仙訣流程](./天仙訣流程.png)
![天仙訣流程](./image/天仙訣流程.png)

每個方框都代表一個境界,境界是還有標準的,以通行之術語解釋:

Expand All @@ -30,6 +30,6 @@
- 塑金身:以硬體語言寫個處理器。著訣前輩許是軟體背景,對此著墨甚淺。
- 合體:在自幹的處理器上跑自幹的系統、應用。

![天仙訣流程註解](./天仙訣流程註解.png)
![天仙訣流程註解](./image/天仙訣流程註解.png)

道友看到此處,想必也明白本作名之為「試結丹」之用意了!

0 comments on commit 2919e42

Please sign in to comment.