Skip to content

Commit 8e98f7e

Browse files
committed
Add option to skip maven publication in release.yml
1 parent 9919e73 commit 8e98f7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
version:
77
description: "New semver version without cdp suffix"
88
required: true
9+
doPublish:
10+
type: boolean
11+
description: "Maven publication (if false, only the changelog and GitHub release are done)"
12+
required: true
13+
default: true
914

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

@@ -53,4 +58,4 @@ jobs:
5358
gpg-signing-password: ${{ secrets.GPG_PASSWORD }}
5459
sonatype-username: ${{ secrets.OSSRH_TOKEN_USERNAME }}
5560
sonatype-password: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
56-
gradle-publish-tasks: publishToSonatype closeAndReleaseSonatypeStagingRepository
61+
gradle-publish-tasks: ${{ inputs.doPublish && 'publishToSonatype closeAndReleaseSonatypeStagingRepository' || '' }}

0 commit comments

Comments
 (0)