2020-10-19 21:04:32 +02:00
|
|
|
name: GitHub Pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-11 03:40:12 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-05-26 15:20:31 +02:00
|
|
|
- uses: cachix/install-nix-action@V27
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2023-12-10 09:07:48 +01:00
|
|
|
- uses: cachix/cachix-action@v13
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 15:38:57 +01:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2020-10-19 21:04:32 +02:00
|
|
|
- run: |
|
|
|
|
nix-build -A docs.html
|
|
|
|
cp -r result/share/doc/home-manager public
|
|
|
|
- name: Deploy
|
2024-04-15 09:42:27 +02:00
|
|
|
uses: peaceiris/actions-gh-pages@v4
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./public
|