Merge pull request #8 from discosat/dsl_proc_exec-mem-leak #16
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: Generate Doxygen documentation | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
# Prevent workflow from running by default on forks | |
if: github.repository == 'discosat/csp_proc' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
- name: Set git identity | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
- name: Merge main | |
run: | | |
git fetch origin main | |
git merge origin/main --allow-unrelated-histories || (git checkout --theirs . && git add . && git commit -m "Resolved merge conflict by using incoming changes") | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen | |
- name: Generate documentation | |
run: | | |
doxygen Doxyfile | |
- name: Commit and push changes | |
run: | | |
git add docs/html | |
git commit -m "Update Doxygen documentation" -a || echo "No changes to commit" | |
git push origin gh-pages |