From 2e487edf377cf0eaa2072e9e000614dce06b617d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 18 Jul 2024 15:40:05 +0200 Subject: [PATCH] Add documentation pages --- .github/workflows/gh-pages.yml | 27 +++++++++++++++++++++++++++ unleashandroidsdk/build.gradle.kts | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..6603f50 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,27 @@ +name: gh-pages + +on: + push: + branches: + - main + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + + - name: Build docs + run: ./gradlew --no-daemon unleashandroidsdk:dokkaHtml + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages # The branch the action should deploy to. + folder: unleashandroidsdk/build/dokka/html # The folder the action should deploy. \ No newline at end of file diff --git a/unleashandroidsdk/build.gradle.kts b/unleashandroidsdk/build.gradle.kts index 3243fac..e2f9ede 100644 --- a/unleashandroidsdk/build.gradle.kts +++ b/unleashandroidsdk/build.gradle.kts @@ -3,7 +3,7 @@ plugins { signing alias(libs.plugins.android.library) alias(libs.plugins.jetbrains.kotlin.android) - id("org.jetbrains.dokka") version "1.7.10" + id("org.jetbrains.dokka") version "1.9.20" id("pl.allegro.tech.build.axion-release") version "1.18.2" }