mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-14 19:09:58 +01:00
* 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
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
name: Auto-build doxygen docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- 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
|
|
with:
|
|
submodules: 'recursive'
|
|
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
|
|
|
|
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
permissions:
|
|
pages: write # to deploy to Pages
|
|
id-token: write # to verify the deployment originates from an appropriate source
|
|
|
|
# Deploy to the github-pages environment
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
# Specify runner + deployment step
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
|