1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00
home-manager/.github/workflows/github_pages.yml

29 lines
688 B
YAML
Raw Normal View History

2020-10-19 19:04:32 +00:00
name: GitHub Pages
on:
push:
branches:
- master
jobs:
publish:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
2020-10-19 19:04:32 +00:00
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
2020-10-19 19:04:32 +00:00
with:
name: nix-community
2022-10-31 14:38:57 +00:00
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2020-10-19 19:04:32 +00:00
- run: |
nix-build -A docs.html
cp -r result/share/doc/home-manager public
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
2020-10-19 19:04:32 +00:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public