Skip to content

Switch analyze precondition to validBody and percolate up #100

Switch analyze precondition to validBody and percolate up

Switch analyze precondition to validBody and percolate up #100

Workflow file for this run

# Workflow for building and deploying the PCG documentation to GitHub Pages
# This workflow uses the npm build system defined in package.json
name: Deploy PCG Documentation
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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:
if: github.repository_owner == 'prusti'
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Cache Cargo packages
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/scripts/setup-mdbook.js') }}
- name: Setup project
run: make setup
- name: Build documentation
run: make build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./book
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.repository_owner == 'prusti'
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4