mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-09-11 21:27:08 +03:00
CI: publish docs to github pages
This commit is contained in:
parent
a5504c8b55
commit
932cf2331b
26
.github/workflows/gh-pages.yml
vendored
Normal file
26
.github/workflows/gh-pages.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: cachix/install-nix-action@v18
|
||||
|
||||
- run: nix build .#docs
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./result
|
Loading…
Reference in New Issue
Block a user