Fix #95 (#107) #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y doxygen graphviz | |
- name: docs | |
run: make doc | |
- name: upload docs artifact | |
uses: actions/[email protected] | |
with: | |
path: ./doc/html/ | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
# NOTE: Needed to push to the repository. | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- id: deployment | |
uses: actions/[email protected] |