Skip to content

Change default branch #1

Change default branch

Change default branch #1

Workflow file for this run

name: Deploy mdBook
on:
push:
branches: [ "gh-pages" ]
# Allows us to run this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: false
- name: Install Nix Package Manager
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.11
- name: Build Documentation
run: |
nix develop \
mdbook build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./book
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4