From d846500f61537ac74245ea1f30c6a21f83edd3dc Mon Sep 17 00:00:00 2001 From: yuri <83583757+kangyuri1114@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:49:16 +0900 Subject: [PATCH] Set Docs(Dokka) (#11) * 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 --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ compose/build.gradle.kts | 1 + gradle/libs.versions.toml | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8227a38 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/ \ No newline at end of file diff --git a/compose/build.gradle.kts b/compose/build.gradle.kts index 02b93fe..58c4e2a 100644 --- a/compose/build.gradle.kts +++ b/compose/build.gradle.kts @@ -1,6 +1,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.jetbrains.kotlin.android) + alias(libs.plugins.jetbrains.dokka) } android { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1c58896..7f46794 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" }