Skip to content

Commit c8b5c1d

Browse files
Add publish input to gate Maven Central deploy
1 parent 971810f commit c8b5c1d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: 'Version of the CLI to bundle'
1717
required: false
1818
type: string
19+
publish:
20+
description: 'Publish package to Maven Central'
21+
required: false
22+
default: false
23+
type: boolean
1924
workflow_call:
2025
inputs:
2126
tag:
@@ -31,6 +36,11 @@ on:
3136
description: 'Version of the CLI to bundle'
3237
required: false
3338
type: string
39+
publish:
40+
description: 'Publish package to Maven Central'
41+
required: false
42+
default: false
43+
type: boolean
3444

3545
permissions:
3646
contents: read
@@ -116,6 +126,7 @@ jobs:
116126
echo "AID_PROP=${prop}" >> $GITHUB_ENV
117127
118128
- name: Publish package
129+
if: inputs.publish == true
119130
run: mvn --batch-mode deploy -DskipTests ${{ env.AID_PROP }}
120131
env:
121132
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}

0 commit comments

Comments
 (0)