File: docs.yml

package info (click to toggle)
jazz2-native 3.3.0-1
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 16,008 kB
  • sloc: cpp: 162,929; xml: 111; python: 31; makefile: 5; sh: 2
file content (54 lines) | stat: -rw-r--r-- 1,384 bytes parent folder | download
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
49
50
51
52
53
54
name: 'API Docs'

on:
  push:
    branches:
      - 'master'
  pull_request_target:
    types: [ opened, synchronize ]
  workflow_dispatch:

concurrency: 
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  Build:
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
    runs-on: 'ubuntu-latest'
    #runs-on: 'ubuntu-22.04'
    
    steps:
    - name: 'Checkout Repository'
      uses: actions/checkout@v4
      with:
        fetch-depth: 0

    - name: 'Checkout Repository (m.css)'
      uses: actions/checkout@v4
      with:
        repository: 'deathkiller/m.css'
        ref: 'death-main'
        ssh-key: ${{ secrets.DOCS_DEPLOY_PRIVATE_KEY }}
        path: 'm.css'

    - name: 'Create Build Environment'
      run: |
        sudo apt update -y
        #sudo apt install doxygen
        sudo apt install texlive-base texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended
        pip3 install jinja2 natsort Pygments
        
    - name: 'Install Doxygen'
      uses: ssciwr/doxygen-install@v1
    
    - name: 'Build'
      run: |
        mkdir -p ./build/docs/
        ./m.css/documentation/doxygen.py ./Docs/Config.py
        
    - name: 'Upload Package'
      uses: actions/upload-artifact@v4
      with:
        name: Jazz2_ApiDocs
        path: ./build/docs/html/