4.1.0 #55
Workflow file for this run
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: Documentation Release | |
on: | |
release: | |
types: [released] | |
workflow_dispatch: | |
jobs: | |
build_and_deploy_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'gradle' | |
- name: Install asciidoctor and pandoc | |
run: | | |
sudo apt install -y asciidoctor | |
wget https://github.com/jgm/pandoc/releases/download/3.1.2/pandoc-3.1.2-1-amd64.deb | |
sudo dpkg -i pandoc-3.1.2-1-amd64.deb | |
- name: Generate Docs | |
run: | | |
chmod +x prepare-docs.sh | |
./prepare-docs.sh | |
shell: bash | |
- name: Install dependencies | |
working-directory: website | |
run: npm ci | |
- name: Build Website | |
working-directory: website | |
run: npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: website/build |