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