@@ -14,7 +14,6 @@ concurrency:
14
14
group : github-pages
15
15
cancel-in-progress : false
16
16
17
- # Permissions setup for GitHub Pages deployment
18
17
permissions :
19
18
contents : read
20
19
pages : write
@@ -29,10 +28,11 @@ jobs:
29
28
ports :
30
29
- 8000:8000
31
30
options : --health-cmd="curl http://localhost:8000/health || exit 1" --health-interval=10s --health-timeout=5s --health-retries=3
31
+
32
32
environment :
33
33
name : github-pages
34
34
url : ${{ steps.deployment.outputs.page_url }}
35
-
35
+
36
36
steps :
37
37
- name : Checkout repository
38
38
uses : actions/checkout@v4
@@ -45,15 +45,20 @@ jobs:
45
45
with :
46
46
node-version : ' 18'
47
47
48
+ - name : Set Node path environment variable
49
+ run : echo "NODE_PATH=$(npm root --quiet -g)" >> $GITHUB_ENV
50
+
51
+ - name : Install Antora and required extensions
52
+ run : |
53
+ npm install -g @antora/cli @antora/site-generator
54
+ npm install @antora/lunr-extension @antora/pdf-extension
55
+
48
56
- name : Setup Java
49
57
uses : actions/setup-java@v4
50
58
with :
51
59
distribution : ' temurin'
52
60
java-version : ' 17'
53
61
54
- - name : Install Antora
55
- run : npm install -g @antora/cli @antora/site-generator
56
-
57
62
- name : Setup Ruby
58
63
uses : ruby/setup-ruby@v1
59
64
with :
@@ -64,12 +69,12 @@ jobs:
64
69
run : sudo apt-get update && sudo apt-get install -y graphviz
65
70
66
71
- name : Generate Site
67
- run : antora antora-playbook.yml
72
+ run : antora --fetch antora-playbook.yml
68
73
69
74
- name : Upload Artifacts
70
75
uses : actions/upload-pages-artifact@v3
71
76
with :
72
- path : build/site # Ensure this matches the output path from Antora
77
+ path : build/site # Ensure this matches the Antora output path
73
78
74
79
- name : Deploy to GitHub Pages
75
80
id : deployment
0 commit comments