From 7fb4e88e680981ebf0b311c177dd29466455aba3 Mon Sep 17 00:00:00 2001 From: Ian Wagner Date: Fri, 18 Oct 2024 15:38:09 +0900 Subject: [PATCH] Try to fix publish action --- .github/workflows/android-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-publish.yml b/.github/workflows/android-publish.yml index 7d8b543..a14e2be 100644 --- a/.github/workflows/android-publish.yml +++ b/.github/workflows/android-publish.yml @@ -1,6 +1,8 @@ name: Gradle Package on: + push: + branches: [ main ] release: types: [published] workflow_dispatch: @@ -29,8 +31,7 @@ jobs: run: ./gradlew build - name: Publish to Maven Central - run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache - working-directory: android + run: ./gradlew publishToMavenCentral --no-configuration-cache env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_TOKEN }}