2020-10-12 00:22:58 +00:00
|
|
|
name: GitHub Pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-01-05 11:06:15 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-06-04 18:23:39 +00:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2020-10-12 00:22:58 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2024-06-04 18:23:39 +00:00
|
|
|
- uses: cachix/cachix-action@v15
|
2020-10-12 00:22:58 +00:00
|
|
|
with:
|
|
|
|
name: nix-community
|
2023-01-10 09:35:00 +00:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2020-10-12 00:22:58 +00:00
|
|
|
- run: |
|
|
|
|
nix-build -A docs.html
|
|
|
|
cp -r result/share/doc/home-manager public
|
|
|
|
- name: Deploy
|
2024-06-04 18:23:39 +00:00
|
|
|
uses: peaceiris/actions-gh-pages@v4
|
2020-10-12 00:22:58 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./public
|