-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro>
- Loading branch information
1 parent
671309d
commit 70107fd
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,11 @@ on: | |
required: false | ||
default: '' | ||
type: string | ||
deployToMavenCentral: | ||
description: 'Specify it if you want to deploy to maven' | ||
required: false | ||
default: 'true' | ||
type: boolean | ||
secrets: | ||
SONATYPE_USERNAME: | ||
description: 'SONATYPE_USERNAME from the caller workflow' | ||
|
@@ -24,11 +29,13 @@ on: | |
jobs: | ||
maven-release: | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
if: inputs.deployToMavenCentral == true | ||
secrets: inherit | ||
with: | ||
extraCommand: ${{ inputs.extraCommand }} | ||
|
||
release: | ||
if: inputs.deployToMavenCentral == true | ||
runs-on: ubuntu-latest | ||
needs: maven-release | ||
steps: | ||
|
@@ -146,7 +153,7 @@ jobs: | |
-Dclassifiers=,sources,javadoc, | ||
deploy_xsd: | ||
if: inputs.nameSpace != '' | ||
if: inputs.nameSpace != '' && inputs.deployToMaven == true | ||
name: Upload xsds | ||
runs-on: ubuntu-20.04 | ||
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | ||
|
@@ -190,4 +197,3 @@ jobs: | |
done | ||
aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/${{ inputs.nameSpace }}/ --only-show-errors | ||