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