Skip to content

Commit

Permalink
Add deployment of docs to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Mar 1, 2023
1 parent 5a675ec commit 6815f04
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Set up environment
run: |
Expand All @@ -24,3 +22,25 @@ jobs:
- name: Build docs
run: |
make -C docs html
- name: Setup Pages
if: github.ref_name == 'main'
uses: actions/configure-pages@v3
- name: Upload Pages artifact
if: github.ref_name == 'main'
uses: actions/upload-pages-artifact@v1
with:
path: "docs/build/html"
deploy:
if: github.ref_name == 'main'
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
id: deployment

0 comments on commit 6815f04

Please sign in to comment.