Skip to content

pages

pages #2225

Workflow file for this run

name: pages
on:
workflow_run:
workflows: [ci]
branches: [main]
types: [completed]
permissions:
contents: read
pages: write
id-token: write
# Cancel previous pages workflows if a new one comes in
concurrency:
group: "pages"
cancel-in-progress: true
env:
MDBOOK_VERSION: 0.5.2
jobs:
build:
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup dir structure
run: |
mkdir -p ./_site/guide
mkdir -p ./_site/state_machines
- name: setup mdbook
run: |
curl -L https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz > mdbook.tar.gz
tar -xvf mdbook.tar.gz
rm mdbook.tar.gz
chmod +x mdbook
- name: build guide book
run: ./mdbook build -d ./_site/guide source/docs/guide
- name: build state_machines book
run: ./mdbook build -d ./_site/state_machines source/docs/state_machines
- name: download verusdoc artifact
uses: dawidd6/action-download-artifact@v2
with:
name: verusdoc
workflow: .github/workflows/ci.yml
run_id: ${{ github.event.workflow_run.id }}
workflow_conclusion: success
path: ./_site/verusdoc
- name: add publications and projects page
uses: actions/jekyll-build-pages@v1
with:
source: source/docs/publications-and-projects
destination: ./_site/publications-and-projects
- name: add verus pages
uses: actions/jekyll-build-pages@v1
with:
source: source/docs/verus
destination: ./_site/verus
- name: upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-22.04
steps:
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v4