Skip to content

Merge pull request #23976 from thexai/fix-warnings #49

Merge pull request #23976 from thexai/fix-warnings

Merge pull request #23976 from thexai/fix-warnings #49

name: Doxygen Action
on:
push:
branches: [ master, main, Matrix, Leia ]
permissions:
contents: read
jobs:
build:
if: github.repository == 'xbmc/xbmc'
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/[email protected]
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/[email protected]
with:
doxyfile-path: "./Doxyfile"
working-directory: "./xbmc/addons/kodi-dev-kit/doxygen"
- name: Doxygen Action Kodi Base
uses: mattnotmitt/[email protected]
with:
doxyfile-path: "./Doxyfile.doxy"
working-directory: "./docs/doxygen"
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOC_ACTIONS_DEPLOY_KEY }}
external_repository: xbmc/docs.kodi.tv
publish_branch: main
destination_dir: ${{ steps.extract_branch.outputs.branch }}
publish_dir: "./build"