-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
That should give nicer reporting on GitHub's side
- Loading branch information
1 parent
cb70f6b
commit b9f3d73
Showing
3 changed files
with
64 additions
and
62 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: book | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
paths: | ||
- "book/**" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
name: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Setup mdBook | ||
uses: peaceiris/actions-mdbook@v1 | ||
|
||
- run: mdbook build -d public | ||
working-directory: book | ||
|
||
- name: Deploy to stable | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./book/public | ||
keep_files: false | ||
destination_dir: stable/latest/book |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: book | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "book/**" | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-22.04 | ||
name: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Setup mdBook | ||
uses: peaceiris/actions-mdbook@v1 | ||
|
||
- run: mdbook build -d public | ||
working-directory: book | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
args: book/public | ||
fail: true |
This file was deleted.
Oops, something went wrong.