Skip to content

Commit

Permalink
deployToMavenCentral (#233)
Browse files Browse the repository at this point in the history
Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro>
  • Loading branch information
sayaliM0412 and Sayali M authored Jul 30, 2024
1 parent 671309d commit 70107fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -24,11 +29,13 @@ on:
jobs:
maven-release:
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.7.8
if: inputs.deployToMavenCentral == true
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}

release:
if: inputs.deployToMavenCentral == true
runs-on: ubuntu-latest
needs: maven-release
steps:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -190,4 +197,3 @@ jobs:
done
aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/${{ inputs.nameSpace }}/ --only-show-errors

0 comments on commit 70107fd

Please sign in to comment.