Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 DAT-18295: add a toggle to deployToMavenCentral #233

Merged
merged 2 commits into from
Jul 30, 2024
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
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/[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:
Expand Down Expand Up @@ -146,7 +153,7 @@ jobs:
-Dclassifiers=,sources,javadoc,

deploy_xsd:
if: inputs.nameSpace != ''
if: inputs.nameSpace != '' && inputs.deployToMaven == true
jnewton03 marked this conversation as resolved.
Show resolved Hide resolved
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