1name: SEDI Doxygen Document Update 2 3on: 4 push: 5 branches: [ main ] 6 7permissions: read-all 8 9jobs: 10 update_sedi_docs: 11 runs-on: ubuntu-22.04 12 env: 13 DOCS_BRANCH: main_docs 14 DOCS_DIR_NAME: bsp_sedi_docs 15 permissions: 16 contents: write 17 steps: 18 - name: Checkout Code 19 uses: actions/checkout@v4 20 21 - name: Git Prepare 22 shell: bash 23 run: | 24 git config --global user.email "intel_hal@intel.github.com" 25 git config --global user.name "Intel HAL Docs Robot" 26 git fetch 27 28 - name: Install Doxygen Tools 29 run: | 30 sudo apt-get update 31 sudo apt-get install -y graphviz doxygen 32 33 - name: Run Doxygen 34 run: doxygen ./docs/bsp_sedi_doxyfile 35 36 - name: Deploy New Doc 37 run: | 38 git checkout -b ${DOCS_BRANCH} origin/${DOCS_BRANCH} 39 rm -rf ./${DOCS_DIR_NAME}/ 40 mv ./docs/${DOCS_DIR_NAME}/ ./${DOCS_DIR_NAME}/ 41 if [[ -n $(git status -s ./${DOCS_DIR_NAME}) ]]; then 42 git add ./${DOCS_DIR_NAME}/ 43 git_hash=$(git rev-parse --short "${GITHUB_SHA}") 44 git commit -s -m "Update SEDI docs, triggered by ${git_hash}" 45 git push origin HEAD:${DOCS_BRANCH} 46 else 47 echo "No update to SEDI docs" 48 fi 49