File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
- name : Set Release Version as an environment variable
22
22
run : echo "PUBLISH_VERSION=$(echo ${{ github.event.release.tag_name }})" >> $GITHUB_ENV
23
23
- name : Publish package
24
- uses : gradle/gradle-build-action@v3
24
+ uses : gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
25
25
with :
26
26
arguments : -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
27
27
env :
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ publishing {
51
51
repositories {
52
52
maven {
53
53
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
+
56
56
val releasesRepoUrl = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
57
57
val snapshotsRepoUrl = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
58
58
setUrl(if (version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl)
You can’t perform that action at this time.
0 commit comments