5 branches: [ master, main, Matrix, Leia ]
12 if: github.repository == 'xbmc/xbmc'
13 runs-on: ubuntu-latest
15 group: ${{ github.workflow }}-${{ github.ref }}
18 uses: actions/checkout@v2.3.2
22 - name: Extract branch name
23 run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
26 - name: Set target dirs
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
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
41 doxyfile-path: "./Doxyfile.doxy"
42 working-directory: "./docs/doxygen"
45 uses: peaceiris/actions-gh-pages@v3
47 deploy_key: ${{ secrets.DOC_ACTIONS_DEPLOY_KEY }}
48 external_repository: xbmc/docs.kodi.tv
50 destination_dir: ${{ steps.extract_branch.outputs.branch }}
51 publish_dir: "./build"