Release 0.1.58 #149
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
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # To push a branch | |
pages: write # To push to a GitHub Pages site | |
id-token: write # To update the deployment status | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jontze/action-mdbook@v3 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
# Optional Plugins have to be enabled with a version | |
mdbook-version: "0.4.40" # Use a semver compatible string | |
use-linkcheck: true | |
linkcheck-version: "~0.7.0" | |
use-mermaid: true | |
mermaid-version: "~0.8.0" | |
use-toc: true | |
toc-version: "~0.7.0" | |
use-opengh: true | |
opengh-version: "~2.0.0" | |
use-admonish: true | |
admonish-version: "~1.8.0" | |
- name: Show mdbook version | |
run: mdbook --version | |
- name: Show linkchecker version | |
run: mdbook-linkcheck --version | |
- name: Show mermaid version | |
run: mdbook-mermaid --version | |
- name: Show toc version | |
run: mdbook-toc --version | |
- name: Show open-on-gh version | |
run: mdbook-open-on-gh --version | |
- name: Show admonish version | |
run: mdbook-admonish --version | |
- name: Build Book | |
run: | | |
cd docs | |
mdbook build | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# Upload entire repository | |
path: 'docs/book' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |