Skip to content

chore(protocol): refactor common logic of hardfork specific protocol code #2388

chore(protocol): refactor common logic of hardfork specific protocol code

chore(protocol): refactor common logic of hardfork specific protocol code #2388

Workflow file for this run

name: Documentation Deployment
# This Github action is adapted from reth.
# Reference: https://github.com/paradigmxyz/reth/blob/main/.github/workflows/book.yml
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened, synchronize, closed]
merge_group:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
- uses: dtolnay/rust-toolchain@nightly
- name: Install Playwright browsers
# Required for rehype-mermaid to render Mermaid diagrams during build
run: |
cd docs/
bun i
npx playwright install --with-deps chromium
- name: Build Vocs
run: |
cd docs/ && bun run build
echo "Vocs Build Complete"
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./docs/docs/dist"
deploy:
# Only deploy if a push to main
if: github.ref_name == 'main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [build]
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
timeout-minutes: 60
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4