Commit e5fe86a 1 parent 1b6d3d7 commit e5fe86a Copy full SHA for e5fe86a
File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ name: Publish Website
3
3
on :
4
4
# Cronjob for publishing
5
5
schedule :
6
- - cron : ' 0 */8 * * *'
6
+ - cron : ' 0 */8 * * *'
7
7
# When pushes are made to the main branch
8
8
push :
9
9
branches : [ main ]
10
- # Also manually from actions
10
+ # Manual trigger from GitHub Actions
11
11
workflow_dispatch :
12
-
12
+
13
13
concurrency :
14
14
group : github-pages
15
15
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
18
18
permissions :
19
19
contents : read
20
20
pages : write
32
32
environment :
33
33
name : github-pages
34
34
url : ${{ steps.deployment.outputs.page_url }}
35
+
35
36
steps :
36
37
- name : Checkout repository
37
38
uses : actions/checkout@v4
51
52
java-version : ' 17'
52
53
53
54
- name : Install Antora
54
- run : npm i antora
55
+ run : npm install -g @ antora/cli @antora/site-generator
55
56
56
57
- name : Setup Ruby
57
58
uses : ruby/setup-ruby@v1
@@ -60,15 +61,15 @@ jobs:
60
61
bundler-cache : true
61
62
62
63
- 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
64
65
65
66
- name : Generate Site
66
- run : npx antora antora-playbook.yml
67
+ run : antora antora-playbook.yml
67
68
68
69
- name : Upload Artifacts
69
- uses : actions/upload-pages-artifact@v3 # Updated to v3 to avoid deprecation issue
70
+ uses : actions/upload-pages-artifact@v3
70
71
with :
71
- path : build/site
72
+ path : build/site # Ensure this matches the output path from Antora
72
73
73
74
- name : Deploy to GitHub Pages
74
75
id : deployment
You can’t perform that action at this time.
0 commit comments