1 name: Generate and deploy documentation on GH pages
3 # update on releases or when triggered manually(must have write access)
10 runs-on: ubuntu-latest
13 uses: actions/checkout@v4
15 run: | # do autotool's job for substitutes since we don't need a full build environement
17 sed 's/@abs_top_builddir@\/docs/gen_docs/g' docs/Doxyfile.in > gen_docs/Doxyfile
18 sed -i 's/@abs_top_srcdir@/./g' gen_docs/Doxyfile
19 # grab version number from configure.ac
20 export VER="`awk '/AC_INIT/{getline;print}' configure.ac | cut -d "[" -f2 | cut -d "]" -f1`"
21 sed -i "s/@PACKAGE_VERSION@/$VER/g" gen_docs/Doxyfile
22 - name: Install and run doxygen
24 sudo apt -y install doxygen graphviz
25 doxygen gen_docs/Doxyfile
26 - name: Upload Pages Artifact
27 uses: actions/upload-pages-artifact@v1
33 # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
35 pages: write # to deploy to Pages
36 id-token: write # to verify the deployment originates from an appropriate source
38 # Deploy to the github-pages environment
41 url: ${{ steps.deployment.outputs.page_url }}
43 # Specify runner + deployment step
44 runs-on: ubuntu-latest
46 - name: Deploy to GitHub Pages
48 uses: actions/deploy-pages@v1