Skip to content

Commit

Permalink
Set Docs(Dokka) (#11)
Browse files Browse the repository at this point in the history
* feat: dokka setting test

* feat: dokka setting test fix syntax error

* feat: dokka setting test add uses

* feat: dokka setting test add permissions, deploy

* feat: dokka setting test fix syntax error

* feat: dokka setting test add set up JDK 17

* feat: dokka setting test add fix tag naming

* feat: dokka setting test del already deployed packages

* feat: dokka setting final

* feat: dokka setting final

* feat: dokka setting final

* feat: dokka setting final
  • Loading branch information
kangyuri1114 authored Sep 10, 2024
1 parent a3ac906 commit d846500
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- run: echo "Starting Release"

name: set up JDK 17
- uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
name: checkout
- uses: actions/checkout@v4

name: permissions
- run: chmod +x gradlew

name: Build Documentation
- run: ./gradlew dokkaHtml

name: Deploy Documentation to GitHub Pages
- uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: compose/build/dokka/html
target-folder: docs/0.x/
1 change: 1 addition & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
alias(libs.plugins.jetbrains.dokka)
}

android {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ androidx-foundation-android = { group = "androidx.compose.foundation", name = "f
android-application = { id = "com.android.application", version.ref = "agp" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
android-library = { id = "com.android.library", version.ref = "agp" }

jetbrains-dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }

0 comments on commit d846500

Please sign in to comment.