Skip to content

Workflow file for this run

name: Publish Dokka Documentation
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate Dokka HTML documentation
run: ./gradlew dokkaHtml
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: build/dokka/html