-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (34 loc) · 1.26 KB
/
antora.yml
File metadata and controls
43 lines (34 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Generate MicroProfile Tutorial
on:
push:
branches:
- main # Or your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication
contents: read # Required to read repository contents
pages: write # Required to deploy to GitHub Pages
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Use a compatible Node.js version
- name: Install Antora Locally
run: npm install @antora/cli @antora/site-generator-default
- name: Verify Antora Installation
run: npm list @antora/cli @antora/site-generator-default || echo "Antora packages are not installed."
- name: Generate Site with Antora
run: npx antora --fetch --stacktrace playbook.yml
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload Antora Site to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./build/site # The output directory for Antora
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4