From b6bbfb0b6624f827caa6e6b0ea19c8c68ea79132 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Wed, 25 Sep 2024 13:52:59 +0200 Subject: [PATCH] GH-140 - Enable snapshot deployment in CI builds. --- .github/workflows/build.yml | 4 ++-- pom.xml | 7 +++++++ settings.xml | 11 +++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 settings.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb3196c..f7863a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,5 +22,5 @@ jobs: java-version: 11 cache: 'maven' - - name: Build with Maven - run: mvn -B package --file pom.xml + - name: Build and deploy snapshot + run: ./mvnw -B deploy --file pom.xml -s settings.xml -DossrhUsername=${{ secrets.OSSRH_USERNAME }} -DossrhPassword=${{ secrets.OSSRH_PASSWORD }} diff --git a/pom.xml b/pom.xml index 6f3e28b..ab28552 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,13 @@ + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + https://github.com/xmolecules/jmolecules scm:git:https://github.com/xmolecules/jmolecules diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..2961552 --- /dev/null +++ b/settings.xml @@ -0,0 +1,11 @@ + + + + + ossrh + ${ossrhUsername} + ${ossrhPassword} + + +