-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 813 Bytes
/
Copy pathci.yml
File metadata and controls
25 lines (25 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Publish to GitHub Pages with Antora
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Antora and the Antora Lunr Extension
run: npm i antora @antora/lunr-extension
- name: Install Asciidoctor Extension
run: npm i asciidoctor-kroki asciidoctor-highlight.js
- name: Generate Site
run: npx antora --key updated="$(date '+%Y-%m-%d %H:%M:%S')" playbook-.yml
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: build/site