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} + + +