Something went wrong. Try again.
My NixOS and nix-darwin configuration.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758name: Build and Deploy Documentation
on: push: branches: [main] paths: ["docs/**"] pull_request: branches: [main] paths: ["docs/**"]
permissions: contents: read pages: write id-token: write
concurrency: group: "pages" cancel-in-progress: false
jobs: build: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4
- name: Install Nix uses: cachix/install-nix-action@v27 with: nix_path: nixpkgs=channel:nixos-unstable
- name: Setup Cachix uses: cachix/cachix-action@v15 with: name: nix-community authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build documentation run: nix build .#docs
- name: Setup Pages uses: actions/configure-pages@v5
- name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: ./result
deploy: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4