Skip to content

Commit

Permalink
Deploy docs to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Apr 19, 2024
1 parent 90bd40a commit 825cfaa
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Build Docs
on:
pull_request:
push:
branches: [main]
branches: [main, test]
tags:
- '*'

jobs:
build-deploy-docs:
build-docs:
name: Docs
runs-on: ubuntu-latest
steps:
Expand All @@ -32,3 +32,25 @@ jobs:
- name: Build Docs
run: |
make -C docs
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html

deploy:
needs: build-docs

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 825cfaa

Please sign in to comment.