-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.72 KB
/
docs.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
59
60
61
62
63
64
65
66
67
68
69
70
name: Documentation
on:
push:
pull_request:
workflow_dispatch:
env:
URHO3D_DOCS: ON
URHO3D_ENABLE_ALL: ON
URHO3D_CSHARP: ON
BUILD_SHARED_LIBS: ON
jobs:
Documentation:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/checkout@v2
with:
fetch-depth: 1
path: rbfx
repository: rbfx/rbfx
ref: master
- name: Install Dependencies
shell: bash
run: |
sudo apt-get install -y --no-install-recommends doxygen libdbus-1-dev
- name: Generate
shell: bash
run: |
# Source code must be outside of docs repo so by including root docs dir we dont also consume ThirdParty source code
mv rbfx ..
cd ..
mkdir cmake-build-rbfx
cd cmake-build-rbfx
cmake ../rbfx
cd ..
mkdir cmake-build-docs
cd cmake-build-docs
cmake ../rbfx-docs
- name: Build
shell: bash
run: |
cd ../cmake-build-docs
cmake --build . --target doc
mv html ../rbfx-docs/html # Allow deployment/artifact steps can find this dir
- name: Deploy
if: github.repository == 'rbfx/rbfx-docs' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.RBFX_DOCS_DEPLOY_TOKEN }}
external_repository: rbfx/rbfx.github.io
destination_dir: docs
cname: rebelfork.io
publish_dir: html
publish_branch: master
- uses: actions/upload-artifact@v4
with:
name: 'rbfx-docs-${{ github.sha }}'
path: html