Publish to correct repo url based on version.

This commit is contained in:
Jeremy Wood 2024-11-18 15:36:47 -05:00
parent e33fc93a1d
commit c4d01b65b7
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B
2 changed files with 6 additions and 11 deletions

View File

@ -78,10 +78,8 @@ jobs:
with: with:
arguments: > arguments: >
publish -x test publish -x test
-PmultiverseReleasesUsername=${{ secrets.REPOSILITE_REPO_USERNAME }} -PmultiverseUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
-PmultiverseReleasesPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }} -PmultiversePassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}
-PmultiverseSnapshotsUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
-PmultiverseSnapshotsPassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}
env: env:
GITHUB_VERSION: ${{ steps.release.outputs.publish_version }} GITHUB_VERSION: ${{ steps.release.outputs.publish_version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -127,13 +127,10 @@ publishing {
} }
} }
maven { maven {
name = "multiverseReleases" name = "multiverse"
url = "https://repo.dumptruckman.com/multiverse-releases" def releasesRepoUrl = "https://repo.dumptruckman.com/multiverse-releases"
credentials(PasswordCredentials) def snapshotsRepoUrl = "https://repo.dumptruckman.com/multiverse-snapshots"
} url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
maven {
name = "multiverseSnapshots"
url = "https://repo.dumptruckman.com/multiverse-snapshots"
credentials(PasswordCredentials) credentials(PasswordCredentials)
} }
} }