Skip to content

Commit b006075

Browse files
Update version of gradle/gradle-build-action
1 parent b9c7c3e commit b006075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set Release Version as an environment variable
2222
run: echo "PUBLISH_VERSION=$(echo ${{ github.event.release.tag_name }})" >> $GITHUB_ENV
2323
- name: Publish package
24-
uses: gradle/gradle-build-action@v3
24+
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
2525
with:
2626
arguments: -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
2727
env:

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ publishing {
5151
repositories {
5252
maven {
5353
credentials(PasswordCredentials::class)
54-
name =
55-
"sonatype" // correlates with the environment variable set in the github action release.yml publish job
54+
name = "sonatype" // correlates with the environment variable set in the github action release.yml publish job
55+
5656
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
5757
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
5858
setUrl(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)

0 commit comments

Comments
 (0)