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:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 08:41:35 +02:00
|
|
|
- uses: cachix/install-nix-action@v13
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2021-04-07 21:14:03 +02:00
|
|
|
- uses: cachix/cachix-action@v10
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
name: nix-community
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
|
|
- run: |
|
|
|
|
nix-build -A docs.html
|
|
|
|
cp -r result/share/doc/home-manager public
|
|
|
|
- name: Deploy
|
2021-04-05 14:31:28 +02:00
|
|
|
uses: peaceiris/actions-gh-pages@v3.8.0
|
2020-10-19 21:04:32 +02:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./public
|