Skip to content

Corrected function names, reorder function calls, and add missing lin… #143

Corrected function names, reorder function calls, and add missing lin…

Corrected function names, reorder function calls, and add missing lin… #143

Workflow file for this run

name: Deploy Documentation to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.28 # MDBOOK_ADMONISH is depends on this exact build.
MDBOOK_ADMONISH_VERSION: 1.9.0
MDBOOK_MERMAID_VERSION: 0.12.6
MDBOOK_SITEMAP_VERSION: 0.1.0
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install mdBook
run: |
mkdir ~/tools
curl -L https://github.com/rust-lang/mdBook/releases/download/v$MDBOOK_VERSION/mdbook-v$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/tools
curl -L https://github.com/tommilligan/mdbook-admonish/releases/download/v$MDBOOK_ADMONISH_VERSION/mdbook-admonish-v$MDBOOK_ADMONISH_VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/tools
curl -L https://github.com/badboy/mdbook-mermaid/releases/download/v$MDBOOK_MERMAID_VERSION/mdbook-mermaid-v$MDBOOK_MERMAID_VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/tools
echo ~/tools >> $GITHUB_PATH
- name: Install static-sitemap-cli
run: npm install static-sitemap-cli
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with mdBook
run: mdbook build -d book docs
- name: Generate sitemap
run: |
cd docs/book
npx sscli --no-clean --base https://lucascheller.github.io/VFX-UsdSurvivalGuide
cd ../..
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/book
deploy:
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@v2