Skip to content

refactor(protocol): make protocol semantics rust native #299

refactor(protocol): make protocol semantics rust native

refactor(protocol): make protocol semantics rust native #299

Workflow file for this run

name: mdBook Preview
on:
pull_request:
types: [opened, reopened, synchronize, closed]
paths:
- 'book/**'
- '**.md'
concurrency:
group: mdbook-preview-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
deploy-preview:
name: Deploy mdBook Preview
runs-on: ubuntu-latest
# Only run for PRs from the same repository (not forks)
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Determinate Nix
if: github.event.action != 'closed'
uses: DeterminateSystems/determinate-nix-action@v3
- name: Build mdBook documentation
if: github.event.action != 'closed'
run: |
nix develop '.#pureRust-ci' -c mdbook build book
env:
NIX_ACCEPT_FLAKE_CONFIG: 1
- name: Deploy mdBook preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./book/book
preview-branch: gh-pages
umbrella-dir: pr-preview