aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlwin Esch <alwin.esch@web.de>2021-12-19 19:10:45 +0100
committerAlwin Esch <alwin.esch@web.de>2021-12-22 22:22:20 +0100
commit3029aa80c9f9f39138e73f756835d01a125a1ad6 (patch)
tree1a57e5562daf876aee1fb7d70593ba6e0485b428 /.github
parent7d4d6e9f9cd52811c02160e68decc04d4d5ad61c (diff)
[doxygen] automatic doxygen generation
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/documentation-creation.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/documentation-creation.yml b/.github/workflows/documentation-creation.yml
new file mode 100644
index 0000000000..d0c9003404
--- /dev/null
+++ b/.github/workflows/documentation-creation.yml
@@ -0,0 +1,52 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Doxygen Action
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ push:
+ branches: [ master, main, Matrix, Leia ]
+
+jobs:
+ build:
+ if: github.repository == 'xbmc/xbmc'
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2.3.2
+ with:
+ fetch-depth: 0
+
+ - name: Extract branch name
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+ id: extract_branch
+
+ - name: Set target dirs
+ run: |
+ mkdir ./build
+ sed -i 's/.*HTML_OUTPUT.*=.*/HTML_OUTPUT = ..\/..\/..\/..\/build\/kodi-dev-kit/' ./xbmc/addons/kodi-dev-kit/doxygen/Doxyfile
+ sed -i 's/.*HTML_OUTPUT.*=.*/HTML_OUTPUT = ..\/build\/kodi-base/' ./docs/doxygen/Doxyfile.doxy
+
+ - name: Doxygen Action kodi-dev-kit
+ uses: mattnotmitt/doxygen-action@v1.1.0
+ with:
+ doxyfile-path: "./Doxyfile"
+ working-directory: "./xbmc/addons/kodi-dev-kit/doxygen"
+
+ - name: Doxygen Action Kodi Base
+ uses: mattnotmitt/doxygen-action@v1.1.0
+ with:
+ doxyfile-path: "./Doxyfile.doxy"
+ working-directory: "./docs/doxygen"
+
+ - name: Deploy docs
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ external_repository: xbmc/docs.kodi.tv
+ publish_branch: main
+ destination_dir: ${{ steps.extract_branch.outputs.branch }}
+ publish_dir: "./build"