-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (40 loc) · 1.18 KB
/
Copy pathdocs.yml
File metadata and controls
46 lines (40 loc) · 1.18 KB
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
name: Documentation
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz texlive-latex-base texlive-fonts-recommended ghostscript cmake libeigen3-dev build-essential ninja-build
- name: Build Documentation
run: |
cmake -G Ninja -S . -B build_docs -DOPENABF_BUILD_DOCS=ON
cmake --build build_docs --target docs
- name: Upload Pages Artifact
if: github.ref == 'refs/heads/develop'
uses: actions/upload-pages-artifact@v5
with:
path: build_docs/docs/html/
deploy-docs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build-docs
if: github.ref == 'refs/heads/develop'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5