aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
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-20 08:56:04 +0100
commit006e1ad7369a94e361303cfd4305eaab75c91943 (patch)
treedf487ac34e070dd9e42109050161cf8fc032765b /.github/workflows
parent2d9e546ac763837710283841e157853dbab33ea5 (diff)
[doxygen] automatic doxygen generation
Diffstat (limited to '.github/workflows')
-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"