CI: publish docs to github pages

This commit is contained in:
zimbatm 2022-12-21 19:43:45 +01:00
parent a5504c8b55
commit 932cf2331b
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

26
.github/workflows/gh-pages.yml vendored Normal file
View 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