Skip to content

chore: migrate to Nix-based development and CI workflows [ENG-11657] … #46

chore: migrate to Nix-based development and CI workflows [ENG-11657] …

chore: migrate to Nix-based development and CI workflows [ENG-11657] … #46

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Nix
uses: ./.github/actions/setup-nix
- name: Install all dependencies
run: nix develop --command uv sync --all-extras
- name: Build documentation
run: |
nix develop --command uv run scripts/build_docs.py
nix develop --command uv run mkdocs build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site