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