Skip to content

Merge pull request #4 from discosat/posix-runtime-build-error-fix #11

Merge pull request #4 from discosat/posix-runtime-build-error-fix

Merge pull request #4 from discosat/posix-runtime-build-error-fix #11

Workflow file for this run

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