Skip to content

Fix README

Fix README #4

Workflow file for this run

# .github/workflows/deploy-docs.yml
name: Deploy API docs
on:
push:
branches: [ main ]
release:
types: [ published ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle' # Enables Gradle caching
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
cache-read-only: false
- name: Generate Dokka Documentation
run: ./gradlew dokkaHtml
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/api # The folder the action should deploy
branch: gh-pages # The branch the action should deploy to
clean: true # Automatically remove deleted files from the deployment