-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (64 loc) · 1.76 KB
/
docs.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build Docs and Publish
on:
pull_request:
push:
branches: [main, develop]
tags: ['*']
#env:
# Nymph_BUILD_NYMPH_EXE: ON
# Nymph_ENABLE_EXECUTABLES: ON
# Nymph_ENABLE_PYTHON: OFF
# Nymph_ENABLE_TESTING: ON
# Nymph_SINGLETHREADED: OFF
# Nymph_TAG: test
jobs:
build:
name: Build Docs and Publish
runs-on: ubuntu-20.04
steps:
- name: Checkout reposistory -- this version
uses: actions/checkout@master
with:
submodules: recursive
- name: Checkout repository -- gh-pages
uses: actions/checkout@v3
with:
ref: gh-pages
path: from-gh-pages
- name: Set output
id: vars
run: |
echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Linux Dependencies
run: |
sudo apt-get update
sudo apt-get install -yq \
doxygen \
libboost-all-dev \
libyaml-cpp-dev \
rapidjson-dev
- name: Build
run: |
ls
ls from-gh-pages
cd Documentation2
pip install -r requirements.txt
make html
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: Documentation2/build/html # The folder the action should deploy.
target-folder: ${{ steps.vars.outputs.short_ref }}
#- name: Run tests
# run: |
# cd build
# Testing/RunTests
# For debugging
# - name: Setup tmate session
# if: ${{ ! success() }}
# uses: mxschmitt/action-tmate@v3