Skip to content

Commit

Permalink
only enforce no snapshot on release relaxe +only add for actual builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Jan 5, 2024
1 parent 97cf320 commit 9416ec6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 9416ec6

Please sign in to comment.