mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-26 12:39:59 +01:00
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
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.qch filter=lfs diff=lfs merge=lfs -text
|
||||||
21
.github/workflows/auto-doxygen.yml
vendored
21
.github/workflows/auto-doxygen.yml
vendored
@@ -5,9 +5,16 @@ on:
|
|||||||
- master
|
- master
|
||||||
#! only for test, remove before MR !
|
#! only for test, remove before MR !
|
||||||
- doxygen
|
- doxygen
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- doxygen
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
doxygen:
|
doxygen:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -16,13 +23,23 @@ jobs:
|
|||||||
show-progress: ''
|
show-progress: ''
|
||||||
- name: Setup and run doxygen
|
- name: Setup and run doxygen
|
||||||
run: sudo apt install doxygen graphviz qhelpgenerator-qt5 -y
|
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
|
- name: Run doxygen
|
||||||
run: doxygen Doxyfile
|
run: doxygen Doxyfile
|
||||||
- uses: actions/upload-pages-artifact@v3
|
- uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/doc/html/
|
path: ${{ github.workspace }}/doc/html/
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
# Add a dependency to the build job
|
# Add a dependency to the build job
|
||||||
needs: doxygen
|
needs: doxygen
|
||||||
|
|||||||
3
doc/QElectroTech.qch
Normal file
3
doc/QElectroTech.qch
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:56debcb415a5c3662b26ff8765daed9cd53a4c00f0b679a50160ac20d690fcfb
|
||||||
|
size 528789504
|
||||||
Reference in New Issue
Block a user