Merge pull request #3128 from Multiverse/fix-publish-repo

This commit is contained in:
Ben Woo 2024-11-19 07:08:32 +08:00 committed by GitHub
commit 2f8d23390a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View File

@ -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 }}

View File

@ -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)
}
}