Skip to content

altered build to more accurately reflect the official Antora docs git… #6

altered build to more accurately reflect the official Antora docs git…

altered build to more accurately reflect the official Antora docs git… #6

name: Build and Deploy Documentation
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Install Node.js
uses: actions/setup-node@v5
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
working-directory: ./site
run: pnpm install
- name: Build Antora site
working-directory: ./site
run: pnpm exec antora --stacktrace antora-playbook.yml
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: site/build/site
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4