forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.24 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
41
42
43
44
45
46
47
48
# -----------------------------------------------------------------------------
# MantisBT GitHub Actions Worflow to build Documentation
#
# Will only run if DocBook files have been changed.
# -----------------------------------------------------------------------------
name: MantisBT Documentation
on:
push:
paths:
- .github/workflows/documentation.yml
- "docbook/*/en-US/**"
- "docbook/*/publican.cfg"
pull_request:
paths:
- .github/workflows/documentation.yml
- "docbook/*/en-US/**"
- "docbook/*/publican.cfg"
concurrency:
group: doc-${{ github.ref }}
cancel-in-progress: true
jobs:
Documentation:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
DOCBOOKS: Admin_Guide Developers_Guide
steps:
- name: Checkout MantisBT Repository
uses: actions/checkout@v4
- name: Install Publican toolchain
run: sudo apt-get install publican
- name: Build Docbooks
run: |
for BOOK in $DOCBOOKS
do
echo "::group::Building '$BOOK'..."
pushd docbook/$BOOK >/dev/null
make
popd >/dev/null
echo "::endgroup::"
done