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")