-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.55 KB
/
nightly-doc-build.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
49
50
51
52
53
54
55
56
57
58
name: Nightly Documentation Build
on:
schedule: # UTC at 0300
- cron: "0 3 * * *"
workflow_dispatch:
jobs:
nightly_docs_build:
runs-on: ubuntu-latest
services:
python-rest-server:
image: ghcr.io/ansys/api-eigen-example/python-rest-server:latest
ports:
- 5000:5000
python-grpc-server:
image: ghcr.io/ansys/api-eigen-example/python-grpc-server:latest
ports:
- 50051:50051
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install project requirements
run: |
sudo apt install cmake libeigen3-dev doxygen graphviz
pip install -r requirements/requirements_eigen_wrapper.txt
pip install src/ansys/eigen/cpp/eigen-wrapper
pip install -r requirements/requirements_build.txt
pip install .
pip install -r requirements/requirements_docs.txt
- name: Build documentation
run: |
make -C doc html
- name: Upload documentation
uses: actions/upload-artifact@v3
with:
name: HTML-Documentation
path: doc/_build/html
retention-days: 7
- name: Deploy documentation to gh-pages
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
token: ${{ secrets.github_token }}
branch: gh-pages
folder: doc/_build/html
clean: true
single-commit: true