File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Antora to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - ' docs/**'
8+ - ' antora-playbook.yml'
9+ - ' .github/workflows/docs.yml'
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : true
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+
28+ - name : Setup Node.js
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : 20
32+
33+ - name : Setup Pages
34+ uses : actions/configure-pages@v5
35+
36+ - name : Build Antora site
37+ run : |
38+ npx -y -p @antora/cli@3.1 -p @antora/site-generator@3.1 antora -r @antora/site-generator antora-playbook.yml
39+
40+ - name : Upload Pages artifact
41+ uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : build/site
44+
45+ deploy :
46+ environment :
47+ name : github-pages
48+ url : ${{ steps.deployment.outputs.page_url }}
49+ runs-on : ubuntu-latest
50+ needs : build
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments