Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update doxygen and add publish job to CI #293

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: publish-docs

on:
workflow_dispatch:
push:
branches:
- 'master'
- 'doxygen'
tags:
- 'v*'
env:
DOXYGEN_VERSION: 1.9.7
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install package
run: sudo apt-get install graphviz
- name: Cache Doxygen
id: cache-doxygen
uses: actions/cache@v3
with:
path: ~/doxygen-${{ env.DOXYGEN_VERSION }}
key: doxygen-${{ env.DOXYGEN_VERSION }}
- if: ${{ steps.cache-doxygen.outputs.cache-hit != 'true' }}
name: Install Doxygen
run: |
wget https://www.doxygen.nl/files/doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz -O - | tar -xz
mv doxygen-${{ env.DOXYGEN_VERSION }} ~/doxygen-${{ env.DOXYGEN_VERSION }}
- name: Add Doxygen to Path
run : echo '~/doxygen-${{ env.DOXYGEN_VERSION }}/bin' >> $GITHUB_PATH
- name: Checkout
uses: actions/[email protected]
- name: Download css file
run: |
wget https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome-sidebar-only.css -P deployment/resources/
wget https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css -P deployment/resources/
- name: Build Github Pages
working-directory: deployment
run: doxygen Doxyfile
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./deployment/html

deploy:
needs: build
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/[email protected]
2 changes: 2 additions & 0 deletions deployment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/resources/*.css
/html/
Loading