Skip to content

dispatch-build-website #30

dispatch-build-website

dispatch-build-website #30

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches: [main]
repository_dispatch:
types: [dispatch-build-website]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Antora
run: npm i antora
- name: Generate Site
run: npx antora antora-playbook.yml
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/site