update-doxygen #21
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
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
build-doxygen: | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Run Doxygen Documentation Generation Container | |
# shell: bash | |
# run: > | |
# docker run --rm | |
# --workdir ${{ github.workspace }} | |
# --volume ${{ github.workspace }}:${{ github.workspace }}:rw | |
# ghcr.io/agarwalsaurav/doxygen-arch:latest | |
# ./ | |
# ./Doxyfile | |
# ./docs | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen graphviz -y | |
shell: bash | |
- name: Generate Doxygen Documentation | |
run: doxygen Doxyfile | |
shell: bash | |
- name: Create .nojekyll (ensures pages with underscores work on gh pages) | |
run: touch docs/.nojekyll | |
shell: bash | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "iarfen" | |
git add docs/* | |
git commit -m "Documentation updated" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
#- name: Deploy to GitHub Pages | |
# uses: JamesIves/[email protected] | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# branch: gh-pages | |
# folder: ./docs | |
# target-folder: docs | |
# git-config-email: [email protected] | |
#steps: | |
#- name: Checkout | |
# uses: actions/checkout@v4 | |
#- name: Action Doxygen and GitHub Pages | |
# id: ghaction | |
# uses: AgarwalSaurav/ghaction-doxygen-ghpages@release/v2 | |
# with: | |
# github_token: ${{ secrets.DOXYGEN_SECRET }} | |
# working-directory: . | |
# doxyfile-path: ./Doxyfile | |
# html-output-folder: ./docs | |
# branch: gh-pages | |
# target_folder: docs | |
# git-config-email: [email protected] |