Skip to content

Commit

Permalink
Publish to correct repo url based on version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumptruckman committed Nov 18, 2024
1 parent e33fc93 commit c4d01b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/generic.github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit c4d01b6

Please sign in to comment.