Skip to content

Commit

Permalink
Publish docs to GitHub Pages
Browse files Browse the repository at this point in the history
If all goes according to plan, this should build the docs page and
deploy it to GH Pages every time I push to `main`.
  • Loading branch information
PsychoLlama committed Jan 11, 2025
1 parent 461432e commit 7bfd87c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docs Website

on:
push: main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build Documentation
run: nix build --print-build-logs '.#docs' --out-link docs
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: docs/

deploy:
runs-on: ubuntu-latest
permissions:
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 7bfd87c

Please sign in to comment.