diff --git a/.github/workflows/generic.github_release.yml b/.github/workflows/generic.github_release.yml index 616fb444..a75ea2c0 100644 --- a/.github/workflows/generic.github_release.yml +++ b/.github/workflows/generic.github_release.yml @@ -78,10 +78,8 @@ jobs: with: arguments: > publish -x test - -PmultiverseReleasesUsername=${{ secrets.REPOSILITE_REPO_USERNAME }} - -PmultiverseReleasesPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }} - -PmultiverseSnapshotsUsername=${{ secrets.REPOSILITE_REPO_USERNAME }} - -PmultiverseSnapshotsPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }} + -PmultiverseUsername=${{ secrets.REPOSILITE_REPO_USERNAME }} + -PmultiversePassword=${{ secrets.REPOSILITE_REPO_PASSWORD }} env: GITHUB_VERSION: ${{ steps.release.outputs.publish_version }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.gradle b/build.gradle index f6bcc82f..4ff62e25 100644 --- a/build.gradle +++ b/build.gradle @@ -127,13 +127,10 @@ publishing { } } maven { - name = "multiverseReleases" - url = "https://repo.dumptruckman.com/multiverse-releases" - credentials(PasswordCredentials) - } - maven { - name = "multiverseSnapshots" - url = "https://repo.dumptruckman.com/multiverse-snapshots" + name = "multiverse" + def releasesRepoUrl = "https://repo.dumptruckman.com/multiverse-releases" + def snapshotsRepoUrl = "https://repo.dumptruckman.com/multiverse-snapshots" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials(PasswordCredentials) } }