forked from garbear/xbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.5 KB
/
documentation-creation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Doxygen Action
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/[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"