-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (51 loc) · 1.54 KB
/
build-antora-doc.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
# Copyright 2024 Sascha Willems
# SPDX-License-Identifier: CC-BY-4.0
# This Antora playbook is used by the CI to make sure the Antora build works
name: "Build Antora documentation"
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: "Get Antora UI bundle"
uses: actions/checkout@v3
with:
repository: KhronosGroup/antora-ui-khronos
path: ./antora-ui-khronos
ref: main
- name: "Install npm"
uses: actions/setup-node@v3
with:
node-version: 'latest'
cache: 'npm'
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install -y asciidoctor
- name: "Build UI bundle"
working-directory: ./antora-ui-khronos
run: |
npx update-browserslist-db@latest
./node_modules/gulp/bin/gulp.js --version
./node_modules/gulp/bin/gulp.js bundle
- name: "Copy UI bundle"
run: cp ./antora-ui-khronos/build/ui-bundle.zip ./
- name: "Build tutorial"
run: |
cd antora
make
- name: "Build Antora documentation"
working-directory: ./
run: |
npx antora antora-ci-playbook.yml --stacktrace