Skip to content

Commit

Permalink
Merge pull request #134 from benjeffery/docs-deploy
Browse files Browse the repository at this point in the history
Deploy docs to github pages
  • Loading branch information
benjeffery authored Apr 19, 2024
2 parents 90bd40a + ede8823 commit ffbdeff
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 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,26 @@ 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
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit ffbdeff

Please sign in to comment.