Merge pull request #24739 from thexai/fix-pixel-shaders #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |