summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 05003e7399bf2c6a93aac9e16640e0ade74f58b0 (plain)
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
name: Website and Doxygen

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Dillo Website repo
      uses: actions/checkout@v4
      with:
        repository: 'dillo-browser/dillo-browser.github.io'
        path: web
    - name: Checkout Dillo repo
      uses: actions/checkout@v4
      with:
        repository: 'dillo-browser/dillo'
        path: dillo
        fetch-depth: 0 # Required for "git describe" to work properly
    - name: Set the Dillo git commit in Doxygen config
      working-directory: dillo/
      run: |
        sed -i "s/^PROJECT_NUMBER  *=/PROJECT_NUMBER=$(git describe)/" Doxyfile
        grep PROJECT_NUMBER Doxyfile
    - name: Build Doxygen docs
      uses: mattnotmitt/doxygen-action@1.9.8
      with:
        working-directory: 'dillo/'
    - name: Copy Doxygen docs to website directory
      run: |
        # For some reason they are generated by root user
        cp -a dillo/html web/doxygen
    - name: Archive docs
      uses: actions/upload-artifact@v4
      with:
        name: website
        path: web/