Render Project Docs #830
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: 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 |