From ca65b86e1dd33831ac6cccea1e74d887eaf455ab Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 12 Aug 2023 11:40:04 -0700 Subject: [PATCH] Also publish to rife2's repo --- .github/workflows/bld.yml | 2 +- .github/workflows/publish.yml | 2 +- src/bld/java/rife/render/TemplateRenderersBuild.java | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml index 129b60f..c18777f 100644 --- a/.github/workflows/bld.yml +++ b/.github/workflows/bld.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - java-version: [ 17, 19, 20 ] + java-version: [ 17, 20 ] steps: - name: Checkout source repository diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad77bcc..b8dbc52 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish to the Maven Central +name: Publish to the Maven Central/Rife2 on: workflow_dispatch: diff --git a/src/bld/java/rife/render/TemplateRenderersBuild.java b/src/bld/java/rife/render/TemplateRenderersBuild.java index 534b9f0..8fcbfba 100644 --- a/src/bld/java/rife/render/TemplateRenderersBuild.java +++ b/src/bld/java/rife/render/TemplateRenderersBuild.java @@ -36,6 +36,10 @@ public class TemplateRenderersBuild extends Project { .withCredentials(property("sonatypeUser"), property("sonatypePassword")) : repository(SONATYPE_RELEASES.location()) .withCredentials(property("sonatypeUser"), property("sonatypePassword"))) + .repository(version.isSnapshot() ? repository(RIFE2_SNAPSHOTS.location()) + .withCredentials(property("rife2Username"), property("rife2Password")) + : repository(RIFE2_RELEASES.location()) + .withCredentials(property("rife2Username"), property("rife2Password"))) .info(new PublishInfo() .groupId("com.uwyn.rife2") .artifactId("rife2-renderers")