Skip to content

Commit 2f8d233

Browse files
authored
Merge pull request #3128 from Multiverse/fix-publish-repo
2 parents e33fc93 + c4d01b6 commit 2f8d233

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/generic.github_release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ jobs:
7878
with:
7979
arguments: >
8080
publish -x test
81-
-PmultiverseReleasesUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
82-
-PmultiverseReleasesPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}
83-
-PmultiverseSnapshotsUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
84-
-PmultiverseSnapshotsPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}
81+
-PmultiverseUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
82+
-PmultiversePassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}
8583
env:
8684
GITHUB_VERSION: ${{ steps.release.outputs.publish_version }}
8785
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,10 @@ publishing {
127127
}
128128
}
129129
maven {
130-
name = "multiverseReleases"
131-
url = "https://repo.dumptruckman.com/multiverse-releases"
132-
credentials(PasswordCredentials)
133-
}
134-
maven {
135-
name = "multiverseSnapshots"
136-
url = "https://repo.dumptruckman.com/multiverse-snapshots"
130+
name = "multiverse"
131+
def releasesRepoUrl = "https://repo.dumptruckman.com/multiverse-releases"
132+
def snapshotsRepoUrl = "https://repo.dumptruckman.com/multiverse-snapshots"
133+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
137134
credentials(PasswordCredentials)
138135
}
139136
}

0 commit comments

Comments
 (0)