Skip to content

formatted codebase

formatted codebase #2

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
jobs:
build:
name: Build and upload artifact
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: .
steps:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: actions/checkout@v4
with:
submodules: recursive
- name: generate documentation artifacts
run: forge doc -b
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/book
deploy:
name: Deploy to GitHub Pages
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4