Skip to content

Commit e5fe86a

Browse files
Update publish.yml
1 parent 1b6d3d7 commit e5fe86a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/publish.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ name: Publish Website
33
on:
44
# Cronjob for publishing
55
schedule:
6-
- cron: '0 */8 * * *'
6+
- cron: '0 */8 * * *'
77
# When pushes are made to the main branch
88
push:
99
branches: [ main ]
10-
# Also manually from actions
10+
# Manual trigger from GitHub Actions
1111
workflow_dispatch:
12-
12+
1313
concurrency:
1414
group: github-pages
1515
cancel-in-progress: false
16-
17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
17+
# Permissions setup for GitHub Pages deployment
1818
permissions:
1919
contents: read
2020
pages: write
@@ -32,6 +32,7 @@ jobs:
3232
environment:
3333
name: github-pages
3434
url: ${{ steps.deployment.outputs.page_url }}
35+
3536
steps:
3637
- name: Checkout repository
3738
uses: actions/checkout@v4
@@ -51,7 +52,7 @@ jobs:
5152
java-version: '17'
5253

5354
- name: Install Antora
54-
run: npm i antora
55+
run: npm install -g @antora/cli @antora/site-generator
5556

5657
- name: Setup Ruby
5758
uses: ruby/setup-ruby@v1
@@ -60,15 +61,15 @@ jobs:
6061
bundler-cache: true
6162

6263
- name: Install Graphviz
63-
run: sudo apt update && sudo apt install -y graphviz
64+
run: sudo apt-get update && sudo apt-get install -y graphviz
6465

6566
- name: Generate Site
66-
run: npx antora antora-playbook.yml
67+
run: antora antora-playbook.yml
6768

6869
- name: Upload Artifacts
69-
uses: actions/upload-pages-artifact@v3 # Updated to v3 to avoid deprecation issue
70+
uses: actions/upload-pages-artifact@v3
7071
with:
71-
path: build/site
72+
path: build/site # Ensure this matches the output path from Antora
7273

7374
- name: Deploy to GitHub Pages
7475
id: deployment

0 commit comments

Comments
 (0)