Skip to content

Commit

Permalink
Add workflow input to do deploy in release
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Aug 15, 2023
1 parent c9eb8ec commit 66a65ef
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Release on demand

on: [workflow_dispatch]
on:
workflow_call:
inputs:
deploy:
description: "Deploy to Maven Central"
required: true
default: false
type: boolean

jobs:
build:
Expand Down Expand Up @@ -28,7 +35,7 @@ jobs:
- name: Release
run: script/build
env:
HUDSON: false
HUDSON: ${{ github.event.inputs.deploy }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

0 comments on commit 66a65ef

Please sign in to comment.