Skip to content

Commit

Permalink
feat(ci): publish docs to gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Nov 15, 2023
1 parent 98cb20d commit 66522aa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy documentation to GH Pages

on:
pull_request:
merge_group:
workflow_dispatch:
push:
branches: [main]

jobs:
deploy-docs:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build docs
run: nix build .#hax.docs --out-link ./built-docs
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./built-docs

0 comments on commit 66522aa

Please sign in to comment.