From 0cbaf2041ec9c5cf97b5ff64fc926ec964068cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vivien=20Mah=C3=A9?= Date: Fri, 9 Feb 2024 10:40:00 +0100 Subject: [PATCH] Update GA workflows --- .github/workflows/{buildDebug.yml => buildRelease.yml} | 6 +++++- .github/workflows/publish.yml | 8 +++++--- gradle.properties | 6 +----- 3 files changed, 11 insertions(+), 9 deletions(-) rename .github/workflows/{buildDebug.yml => buildRelease.yml} (88%) diff --git a/.github/workflows/buildDebug.yml b/.github/workflows/buildRelease.yml similarity index 88% rename from .github/workflows/buildDebug.yml rename to .github/workflows/buildRelease.yml index aa39425..310acc3 100644 --- a/.github/workflows/buildDebug.yml +++ b/.github/workflows/buildRelease.yml @@ -2,6 +2,9 @@ name: Kmplate-lib build on: workflow_call: + secrets: + SLACK_WEBHOOK_URL: + required: true workflow_dispatch: push: @@ -48,4 +51,5 @@ jobs: notify: needs: build uses: ./.github/workflows/notify.yml - secrets: inherit + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9852817..9a175b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,11 +10,13 @@ on: types: [ released ] jobs: - build: - uses: ./.github/workflows/buildDebug.yml + build-release: + uses: ./.github/workflows/buildRelease.yml + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} publish: - needs: build + needs: build-release env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} diff --git a/gradle.properties b/gradle.properties index 7f53ad4..9f9a937 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,11 +1,7 @@ #Gradle org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M" -org.gradle.caching=true -org.gradle.configuration-cache=true - #Kotlin kotlin.code.style=official - #Android android.useAndroidX=true -android.nonTransitiveRClass=true \ No newline at end of file +android.nonTransitiveRClass=true