trigger-publish #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |