Skip to content

Merge pull request #17 from Nadrieril/uniquearc #54

Merge pull request #17 from Nadrieril/uniquearc

Merge pull request #17 from Nadrieril/uniquearc #54

Workflow file for this run

# Sample workflow for building and deploying a mdBook site to GitHub Pages
#
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
#
name: Deploy mdBook site to Pages
# Runs on pushes and PRs targeting the default branch
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows running from promote workflow
workflow_call:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- name: Install mdbook-linkcheck
uses: baptiste0928/cargo-install@v3
# Temporarily pull the fix for https://github.com/Michael-F-Bryan/mdbook-linkcheck/pull/98
with:
crate: mdbook-linkcheck
git: https://github.com/schilkp/mdbook-linkcheck
rev: ed981be6ded11562e604fff290ae4c08f1c419c5
- name: Install mdbook-backlinks
uses: baptiste0928/cargo-install@v3
with:
crate: mdbook-backlinks
git: https://github.com/Nadrieril/mdbook-backlinks
rev: 526e94fd747d712c75baea840d23f513233e0927
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with mdBook
run: mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./book/html
# Deployment job
deploy:
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4