Skip to content

Commit

Permalink
Try to fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Oct 18, 2024
1 parent 0a46670 commit 7fb4e88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/android-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Gradle Package

on:
push:
branches: [ main ]
release:
types: [published]
workflow_dispatch:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 7fb4e88

Please sign in to comment.