Skip to content

Commit b74438a

Browse files
Update publish.yml
1 parent c3cfce0 commit b74438a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/publish.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414
group: github-pages
1515
cancel-in-progress: false
1616

17-
# Permissions setup for GitHub Pages deployment
1817
permissions:
1918
contents: read
2019
pages: write
@@ -29,10 +28,11 @@ jobs:
2928
ports:
3029
- 8000:8000
3130
options: --health-cmd="curl http://localhost:8000/health || exit 1" --health-interval=10s --health-timeout=5s --health-retries=3
31+
3232
environment:
3333
name: github-pages
3434
url: ${{ steps.deployment.outputs.page_url }}
35-
35+
3636
steps:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
@@ -45,15 +45,20 @@ jobs:
4545
with:
4646
node-version: '18'
4747

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+
4856
- name: Setup Java
4957
uses: actions/setup-java@v4
5058
with:
5159
distribution: 'temurin'
5260
java-version: '17'
5361

54-
- name: Install Antora
55-
run: npm install -g @antora/cli @antora/site-generator
56-
5762
- name: Setup Ruby
5863
uses: ruby/setup-ruby@v1
5964
with:
@@ -64,12 +69,12 @@ jobs:
6469
run: sudo apt-get update && sudo apt-get install -y graphviz
6570

6671
- name: Generate Site
67-
run: antora antora-playbook.yml
72+
run: antora --fetch antora-playbook.yml
6873

6974
- name: Upload Artifacts
7075
uses: actions/upload-pages-artifact@v3
7176
with:
72-
path: build/site # Ensure this matches the output path from Antora
77+
path: build/site # Ensure this matches the Antora output path
7378

7479
- name: Deploy to GitHub Pages
7580
id: deployment

0 commit comments

Comments
 (0)