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" }