[FileItem][Cleanup] Add getter/setter for start/end offset
[xbmc.git] / .github / workflows / documentation-creation.yml
blob7daef47402a333b1073f1bb660d3b3f49efd0d0d
1 name: Doxygen Action
3 on:
4   push:
5     branches: [ master, main, Matrix, Leia ]
7 permissions:
8   contents: read
10 jobs:
11   build:
12     if: github.repository == 'xbmc/xbmc'
13     runs-on: ubuntu-latest
14     concurrency:
15       group: ${{ github.workflow }}-${{ github.ref }}
16     steps:
17       - name: Checkout
18         uses: actions/checkout@v2.3.2
19         with:
20           fetch-depth: 0
22       - name: Extract branch name
23         run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
24         id: extract_branch
26       - name: Set target dirs
27         run: |
28              mkdir ./build
29              sed -i 's/.*HTML_OUTPUT.*=.*/HTML_OUTPUT = ..\/..\/..\/..\/build\/kodi-dev-kit/' ./xbmc/addons/kodi-dev-kit/doxygen/Doxyfile
30              sed -i 's/.*HTML_OUTPUT.*=.*/HTML_OUTPUT = ..\/build\/kodi-base/' ./docs/doxygen/Doxyfile.doxy
32       - name: Doxygen Action kodi-dev-kit
33         uses: mattnotmitt/doxygen-action@v1.1.0
34         with:
35           doxyfile-path: "./Doxyfile"
36           working-directory: "./xbmc/addons/kodi-dev-kit/doxygen"
38       - name: Doxygen Action Kodi Base
39         uses: mattnotmitt/doxygen-action@v1.1.0
40         with:
41           doxyfile-path: "./Doxyfile.doxy"
42           working-directory: "./docs/doxygen"
44       - name: Deploy docs
45         uses: peaceiris/actions-gh-pages@v3
46         with:
47           deploy_key: ${{ secrets.DOC_ACTIONS_DEPLOY_KEY }}
48           external_repository: xbmc/docs.kodi.tv
49           publish_branch: main
50           destination_dir: ${{ steps.extract_branch.outputs.branch }}
51           publish_dir: "./build"