From 9416ec6a9f0c44e459d6015760675fe8c664ae60 Mon Sep 17 00:00:00 2001 From: Kenneth Lausdahl Date: Fri, 5 Jan 2024 10:22:22 +0100 Subject: [PATCH] only enforce no snapshot on release relaxe +only add for actual builds --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6706ee4..97a7138 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,10 +135,10 @@ jobs: - name: Maven download - run: mvn validate dependency:resolve-plugins -Psonatype -Prelease -B --quiet + run: mvn validate dependency:resolve-plugins -Psonatype -B --quiet - name: Maven Build - run: mvn -B package -Psonatype -Prelease --file pom.xml "-Dmaven.test.skip=true" + run: mvn -B package -Dchangelist= -Dsha1= -Psonatype -Prelease --file pom.xml "-Dmaven.test.skip=true" final: name: Build and Deploy Combined Release @@ -186,14 +186,14 @@ jobs: - name: Maven download - run: mvn validate dependency:resolve-plugins -Psonatype -Prelease -B --quiet + run: mvn validate dependency:resolve-plugins -Psonatype -B --quiet - name: Maven Build Final - run: mvn -B package -Psonatype -Prelease --file pom.xml -Dmaven.test.skip=true + run: mvn -B package -Dchangelist= -Dsha1= -Psonatype -Prelease --file pom.xml -Dmaven.test.skip=true - name: Maven Deploy RELEASE # If autorelease is false then it must be released from here: https://oss.sonatype.org/#stagingRepositories - run: mvn -B deploy -Dchangelist= -Dsha1= -Dmaven.test.skip=true -DskipITs -fae -Psonatype -DautoReleaseAfterClose=true + run: mvn -B deploy -Dchangelist= -Dsha1= -Dmaven.test.skip=true -DskipITs -fae -Psonatype -Prelease -DautoReleaseAfterClose=true env: MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}