Skip to content

Commit fd1fc9d

Browse files
authored
Create publish.yml
1 parent 286c9e4 commit fd1fc9d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to GitHub Pages with Lunr Search Extension
2+
on:
3+
push:
4+
branches: [master]
5+
# Allows you to run this workflow manually from the Actions tab
6+
workflow_dispatch:
7+
concurrency:
8+
group: github-pages
9+
cancel-in-progress: false
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
- name: Configure Pages
25+
uses: actions/configure-pages@v5
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '18'
30+
- name: Install Antora with the Antora Lunr Extension
31+
run: npm i antora @antora/lunr-extension
32+
- name: Generate Site
33+
run: npx antora antora-playbook.yml
34+
- name: Upload Artifacts
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: build/site
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)