Skip to content

Commit 66a65ef

Browse files
committed
Add workflow input to do deploy in release
1 parent c9eb8ec commit 66a65ef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Release on demand
22

3-
on: [workflow_dispatch]
3+
on:
4+
workflow_call:
5+
inputs:
6+
deploy:
7+
description: "Deploy to Maven Central"
8+
required: true
9+
default: false
10+
type: boolean
411

512
jobs:
613
build:
@@ -28,7 +35,7 @@ jobs:
2835
- name: Release
2936
run: script/build
3037
env:
31-
HUDSON: false
38+
HUDSON: ${{ github.event.inputs.deploy }}
3239
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3340
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3441
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

0 commit comments

Comments
 (0)