-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (39 loc) · 1.17 KB
/
documentation.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
name: Doxygen
on: push
jobs:
doc:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Doxygen and other dependencies
run: |
sudo apt update
sudo apt-get install -y doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
pip3 install mlx.warnings
- name: Execute and build documentation
run: |
mlx-warnings --doxygen --exact-warnings 3 --command make doxy
- name: Upload HTML documentation
uses: actions/upload-artifact@v3
with:
name: html-doc
path: ./build/html/doxygen/html
deploy:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: doc
name: Publish
runs-on: ubuntu-latest
steps:
- name: Download HTML documentation from job 'test'
uses: actions/download-artifact@v3
with:
name: html-doc
path: ./build/html/doxygen/html
- name: Disable jekyll
run: touch ./build/html/doxygen/html/.nojekyll
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html/doxygen/html