From a415c9fd21789ca06e6a439af95cd14f885bd04c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 8 Apr 2023 13:51:27 -0700 Subject: [PATCH] Added sonatype releases credentials --- .github/workflows/pages.yml | 2 +- .github/workflows/publish.yml | 6 ++++-- src/bld/java/rife/render/TemplateRenderersBuild.java | 7 ++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f6122cd..0236ccd 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -3,7 +3,7 @@ name: javadocs-pages on: # Runs on pushes targeting the default branch push: - branches: ["master"] + branches: [ "master" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52272ed..1150139 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish to the Maven Central on: workflow_dispatch: release: - types: [released] + types: [ released ] jobs: build-bld-project: @@ -33,4 +33,6 @@ jobs: -DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers -DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }} -Drife2Username=${{ secrets.RIFE2_USERNAME }} - -Drife2Password=${{ secrets.RIFE2_PASSWORD }} \ No newline at end of file + -Drife2Password=${{ secrets.RIFE2_PASSWORD }} + -DsonatypeUser=${{ secrets.SONATYPE_USER }} + -DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }} \ No newline at end of file diff --git a/src/bld/java/rife/render/TemplateRenderersBuild.java b/src/bld/java/rife/render/TemplateRenderersBuild.java index 8d377aa..beba787 100644 --- a/src/bld/java/rife/render/TemplateRenderersBuild.java +++ b/src/bld/java/rife/render/TemplateRenderersBuild.java @@ -27,11 +27,12 @@ public class TemplateRenderersBuild extends Project { .link("https://rife2.github.io/rife2/"); publishOperation() - .repository(version.isSnapshot() ? repository("https://repo.rife2.com/snapshots") + .repository(version.isSnapshot() ? repository(RIFE2_SNAPSHOTS.location()) .withCredentials(property("rife2Username"), property("rife2Password")) - : repository("https://repo.rife2.com/releases") + : repository(RIFE2_RELEASES.location()) .withCredentials(property("rife2Username"), property("rife2Password"))) - .repository(MAVEN_CENTRAL) + .repository(repository(SONATYPE_RELEASES.location()) + .withCredentials(property("sonatypeUser"), property("sonatypePassword"))) .info(new PublishInfo() .groupId("com.uwyn.rife2") .artifactId("rife2-renderers")