Skip to content

add update-flake-lock.yaml workflow #142

add update-flake-lock.yaml workflow

add update-flake-lock.yaml workflow #142

Workflow file for this run

name: Documentation
on:
push:
branches: [ develop ]
tags: [ '*' ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Check Nix flake Nixpkgs inputs
uses: DeterminateSystems/flake-checker-action@main
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: mycache
# If you chose signing key for write access
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build docs
run: nix run .#docs build
- name: Publish documentation
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/site