Skip to content

Commit 38821f4

Browse files
feat: add CI specific to html target (#107)
* feat: add CI specific to html target * fix: command
1 parent cdaf98b commit 38821f4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ jobs:
2828
- name: Build Book
2929
run: |
3030
cargo run --release --bin shiroa -- build --path-to-root /shiroa/ -w . github-pages/docs
31+
- name: Build Book (HTML Target)
32+
run: |
33+
cargo run --release --bin shiroa -- build --path-to-root /shiroa/ -w . github-pages/docs --mode static-html
3134
- name: Test
3235
run: cargo test --workspace --no-fail-fast

.github/workflows/gh_pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
node-version: 22.x
4444
- name: Install Artifact Cache
4545
uses: Swatinem/rust-cache@v2
46+
- name: Build Book (HTML Target)
47+
run: |
48+
cargo run --release --bin shiroa -- build --font-path assets/fonts --path-to-root /shiroa/html/ -w . github-pages/docs --mode static-html
49+
mv ./github-pages/dist/ ./github-pages/dist-html/
50+
mkdir -p ./github-pages/dist/
51+
mv ./github-pages/dist-html ./github-pages/dist/html
4652
- name: Build Book
4753
run: |
4854
cargo run --release --bin shiroa -- build --font-path assets/fonts --path-to-root /shiroa/ -w . github-pages/docs

0 commit comments

Comments
 (0)