-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a2cfee
commit 43f341e
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
tags: | ||
- v[0-9]+.* | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
|
@@ -28,15 +30,22 @@ jobs: | |
mkdir mdbook | ||
curl -sSL $url | tar -xz --directory=./mdbook | ||
echo `pwd`/mdbook >> $GITHUB_PATH | ||
- run: mkdir -p target/site/ | ||
- name: Build Book | ||
run: | | ||
mdbook build doc -d target/site/book | ||
(cd doc && mdbook build -d ../target/site/book) | ||
- name: Add static landing page | ||
run: cp -r site/* target/site/ | ||
|
||
- name: Install Rust | ||
run: rustup update stable && rustup default stable | ||
- name: Cache builds | ||
uses: Swatinem/[email protected] | ||
with: | ||
key: website | ||
- name: Build Rune API docs | ||
run: cargo --bin konfigkoll_rune -- doc --output target/site/api | ||
- name: Add static landing page | ||
run: cp -r site/* target/site/ | ||
run: cargo run --bin konfigkoll_rune -- doc --output target/site/api | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
|