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