Skip to content

Publish to GitHub Pages #62

Publish to GitHub Pages

Publish to GitHub Pages #62

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Antora and the Antora Lunr Extension
run: npm i
- name: Generate Site
run: npx antora antora-playbook.yml
- name: Override index page
run: cp src/index.html build/site/index.html
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/site