Skip to content

Commit

Permalink
ci: add condition to rerun failed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Oct 19, 2023
1 parent 459fb04 commit 36e2d36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'Perform release'
default: false
type: boolean
push_maven:
description: 'Push to maven Central'
default: true
type: boolean
pull_request:
paths:
- '**.java'
Expand Down Expand Up @@ -215,6 +219,7 @@ jobs:
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${RELEASE_VERSION}/g" README.adoc
# The sonatype maven plugin will decide the right destination depending on whether the project is SNAPSHOT or not
- name: Publish to Apache Maven Central
if: github.event_name == 'push' || inputs.push_maven
run: mvn --batch-mode --no-transfer-progress deploy -P release -DskipTests
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }} # must be the same env variable name as (1)
Expand Down

0 comments on commit 36e2d36

Please sign in to comment.