diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9e12333..0ce9bb8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0 - name: Run publish task - run: ./gradlew build sonatypeCentralUpload + run: ./gradlew sonatypeCentralUpload env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_KEY_PASSPHRASE: ${{ secrets.SIGNING_KEY_PASSPHRASE }} diff --git a/build.gradle.kts b/build.gradle.kts index fa8832b..2933010 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -50,3 +50,7 @@ sonatypeCentralUpload { signingKey = System.getenv("SIGNING_KEY") signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE") } + +tasks.sonatypeCentralUpload { + dependsOn("build") +}