-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github] Automatically generate the Book
Closes: #472
- Loading branch information
1 parent
52399be
commit 1b0afdb
Showing
2 changed files
with
24 additions
and
2 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 |
---|---|---|
|
@@ -24,8 +24,28 @@ jobs: | |
changes-pull-request-number: ${{ steps.changes.outputs.changes-pull-request-number }} | ||
rust-changes: ${{ steps.rust-changes.outputs.changes-found }} | ||
base-image-changes: ${{ steps.base-image-changes.outputs.changes-found }} | ||
|
||
generate-documentation: | ||
name: Generate the Move Book using mdBook | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Setup mdBook | ||
uses: peaceiris/actions-mdbook@v1 | ||
with: | ||
mdbook-version: '0.4.10' | ||
# mdbook-version: 'latest' | ||
|
||
- run: mdbook build language/documentation/book | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./language/documentation/book/book | ||
with: | ||
# This ensures that the tip of the PR is checked out instead of the merge between the base ref and the tip | ||
# On `push` this value will be empty and will "do-the-right-thing" | ||
|
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