Skip to content

trigger-publish

trigger-publish #89

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
repository_dispatch:
types: [ trigger-publish ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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:
personal_token: ${{ secrets.GHCR_TOKEN }}
publish_dir: build/site