-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (51 loc) · 1.61 KB
/
docs.yaml
File metadata and controls
51 lines (51 loc) · 1.61 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name:
on:
push:
branches:
- master
#paths:
#- 'docs/**'
jobs:
build_site:
name: "Build site with Antora"
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v2
#- name: "Generate site using antora site action"
#uses: kameshsampath/antora-site-action@v0.2.3
#with:
#antora_playbook: playbook.yml
- name: Generate Antora Site with Lunr Search
# You may pin to the exact commit or the version.
# uses: ghost-420/antora-lunr-site-action@d83b765b2ffc8e7fe2c8743acb919f3a882f65a5
uses: ghost-420/antora-lunr-site-action@v1.0
with:
antora_playbook: playbook.yml
# optional path within the repo, defaults to ${{github.workspace}}
#site_sources_path: 'site-sources-folder'
- name: "Upload generated site"
uses: actions/upload-artifact@v1.0.0
with:
name: site
path: "${{ github.workspace }}/build/site"
deploy_site:
name: "Deploy GitHub Pages"
runs-on: [ ubuntu-latest ]
needs: [ build_site ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download generated site
uses: actions/download-artifact@v1
with:
name: site
path: "${{ github.workspace }}/site"
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
BRANCH: 'gh-pages'
FOLDER: "site"
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}"
CLEAN: true