Deploy Documentation Website #5
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: Deploy Documentation Website | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Set up JDK" | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: "Build API documentation" | |
run: ./gradlew dokkaHtml | |
- name: "Add API docs to mkdocs structure" | |
run: mv ./build/dokka/html/ ./docs/api/ | |
- name: "Install Python" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: "Build and deploy documentation website" | |
run: | | |
pip install mkdocs-material | |
mkdocs gh-deploy --force |