Skip to content

Commit

Permalink
Switch to PaperMC Nexus for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
DenWav committed Jul 22, 2023
1 parent 2d97d8b commit c49491b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
echo "version=$project_version" >> $GITHUB_OUTPUT
- name: Deploy snapshot version
if: endsWith(steps.get_version.outputs.version, '-SNAPSHOT')
run: ./gradlew build publishCodebookPublicationToDenwavRepository --stacktrace
run: ./gradlew build publishCodebookPublicationToPapermcRepository --stacktrace
env:
ORG_GRADLE_PROJECT_denwavUsername: ${{ secrets.DENWAV_USERNAME }}
ORG_GRADLE_PROJECT_denwavPassword: ${{ secrets.DENWAV_PASSWORD }}
ORG_GRADLE_PROJECT_papermcUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_papermcPassword: ${{ secrets.NEXUS_PASSWORD }}
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- uses: gradle/gradle-build-action@v2
name: Deploy
with:
arguments: build publishCodebookPublicationToDenwavRepository --stacktrace
arguments: build publishCodebookPublicationToPapermcRepository --stacktrace
env:
ORG_GRADLE_PROJECT_denwavUsername: ${{ secrets.DENWAV_USERNAME }}
ORG_GRADLE_PROJECT_denwavPassword: ${{ secrets.DENWAV_PASSWORD }}
ORG_GRADLE_PROJECT_papermcUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_papermcPassword: ${{ secrets.NEXUS_PASSWORD }}
- name: Get tag name
id: get_tag
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions build-logic/src/main/kotlin/codebook.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ publishing {

repositories {
val url = if (isSnapshot) {
"https://repo.denwav.dev/repository/maven-snapshots/"
"https://repo.papermc.io/repository/maven-snapshots/"
} else {
"https://repo.denwav.dev/repository/maven-releases/"
"https://repo.papermc.io/repository/maven-releases/"
}
maven(url) {
name = "denwav"
name = "papermc"
credentials(PasswordCredentials::class)
}
}
Expand Down

0 comments on commit c49491b

Please sign in to comment.