Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@

name: Maven publish

on: workflow_call
on:
workflow_call:
inputs:
# calling workflow can specify inputs as follows:
# uses: <this reusable workflow>
# with:
# mvn-options: <custom options>
mvn-options:
description: 'extra maven command line options (space separated)'
default: ''
required: false
type: string

jobs:
publish:
Expand All @@ -43,7 +54,7 @@ jobs:

- name: Publish to Maven Central Portal
# if autoPublish is false (see pom.xml), we need to publish manually via https://central.sonatype.com/publishing/deployments
run: mvn --batch-mode deploy
run: mvn --batch-mode --fail-fast ${{ inputs.mvn-options }} deploy
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Expand Down
Loading