Skip to content

use "modern" github pages action #5

use "modern" github pages action

use "modern" github pages action #5

Workflow file for this run

jobs:
deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v29
- run: nix develop .#book -c mdbook build ./.
- if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book/
- if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages
'on':
push:
branches:
- main