Skip to content

Commit

Permalink
Deploy action for website
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed May 18, 2024
1 parent 70d7eb8 commit 3f3d9c8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: github pages

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@a56e3a80896f10bfe28feea2c49695c0225b2485
- name: Build documentation book
run: nix build -L --show-trace .#website

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result

0 comments on commit 3f3d9c8

Please sign in to comment.