From 73e673ef8ae9182fe98a920b73ee16b40ff622cc Mon Sep 17 00:00:00 2001 From: Int-Circuit <136177157+Int-Circuit@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:48:26 +0200 Subject: [PATCH] adding Auto Push support (#2) * added deb build CI/CD + setup gitignore on local build/ dir * added exception for test on branch * fix image selection * added XML option to Doxyfile + artifact output * updated doxygen version * added ci for doxygen * added diff + fix action directory * remove working dir option * switch to atest doxygen version * added aterfact upload * added deployment step in ci + doxygen theme * separated setup and doxygen step * added correct path for dox build * switch to docker action * return to binary package * dummy commit for pages * swithced to upload-pages-artifact * fixed typo not fetching submodules + pointing to correct doxygen theme as changes to it are in repo * separate deb build to ci/cd branch for future MR * remove debug log * changed location of generation of .qch file * adding sync * collapse sync in one file * added auto MR CI * using checkout to push * added test to downloaded dir * fix add path * check if file is marked as modified * added path info * drop artifact method * fix path * removed checkout clearing the repo * force to pass gitignore filter * setting up git lfs * Push updated QCH file * removed branch testing --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fixed action error due to rebasing --- .gitattributes | 1 + .github/workflows/auto-doxygen.yml | 21 +++++++++++++++++++-- doc/QElectroTech.qch | 3 +++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 100644 doc/QElectroTech.qch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..e417c1cdd --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.qch filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/auto-doxygen.yml b/.github/workflows/auto-doxygen.yml index b51fdf330..4fb38bef3 100644 --- a/.github/workflows/auto-doxygen.yml +++ b/.github/workflows/auto-doxygen.yml @@ -5,9 +5,16 @@ on: - master #! only for test, remove before MR ! - doxygen + pull_request: + branches: + - main + - doxygen + jobs: doxygen: + permissions: + contents: write runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -16,13 +23,23 @@ jobs: show-progress: '' - name: Setup and run doxygen run: sudo apt install doxygen graphviz qhelpgenerator-qt5 -y + - name: Set up Git LFS + run: | + git lfs install + git lfs track "*.qch" + - name: Run doxygen + run: doxygen Doxyfile + - run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add .gitattributes ${{ github.workspace }}/doc/QElectroTech.qch -f + git commit -m "Push updated QCH file" + git push - name: Run doxygen run: doxygen Doxyfile - uses: actions/upload-pages-artifact@v3 with: path: ${{ github.workspace }}/doc/html/ - - deploy: # Add a dependency to the build job needs: doxygen diff --git a/doc/QElectroTech.qch b/doc/QElectroTech.qch new file mode 100644 index 000000000..4439223c0 --- /dev/null +++ b/doc/QElectroTech.qch @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56debcb415a5c3662b26ff8765daed9cd53a4c00f0b679a50160ac20d690fcfb +size 528789504