Skip to content

Commit

Permalink
Add option to skip maven publication in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joffrey-bion authored Jan 3, 2025
1 parent 9919e73 commit 1559d8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
version:
description: "New semver version without cdp suffix"
required: true
doPublish:
description: "Maven publication (if false, only the changelog and GitHub release are done)"
required: true
default: true

run-name: "Release ${{ inputs.version }}-(cdp-version)"

Expand Down Expand Up @@ -53,4 +57,4 @@ jobs:
gpg-signing-password: ${{ secrets.GPG_PASSWORD }}
sonatype-username: ${{ secrets.OSSRH_TOKEN_USERNAME }}
sonatype-password: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
gradle-publish-tasks: publishToSonatype closeAndReleaseSonatypeStagingRepository
gradle-publish-tasks: ${{ inputs.doPublish && 'publishToSonatype closeAndReleaseSonatypeStagingRepository' || '' }}

0 comments on commit 1559d8e

Please sign in to comment.