-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (34 loc) · 896 Bytes
/
renderDocs.yml
File metadata and controls
38 lines (34 loc) · 896 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
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Render Project Docs
on:
workflow_dispatch:
push:
schedule:
- cron: '12 1 * * *'
jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: rlespinasse/github-slug-action@v4.x
- name: Install antora
run: |
npm i @antora/cli@3.1 @antora/site-generator@3.1 @antora/lunr-extension
npm install
- name: Cleanup docs folder
run: |
ls -l docs/*
rm -rf docs/*
- name: Render docs
run: |
npx antora --version
npx antora generate --silent --clean --fetch site.yml
- name: Publish docs
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./.github/workflows/push.sh