diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 97802d7..cfff9a5 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -34,11 +34,11 @@ on: default: false jboss_parent_override: - description: "Overrides for Jboss-Parent Central releasing" + description: "Overrides for JBoss-Parent Central Profile" required: false type: string # central.serverId : We use 'central-publisher' not 'central' - # central.autoPublsh: Set to false (the plugin default) + # central.autoPublish: Set to false (the plugin default) # releaseProfile: Use the central profile not jboss-release # signTag: Reset back to maven-release-plugin default default: '-Dcentral.serverId=central-publisher -Dcentral.autoPublish=false -DreleaseProfile=central-release -DsignTag=false' diff --git a/.github/workflows/maven-snapshot.yml b/.github/workflows/maven-snapshot.yml index 960d172..4da39fa 100644 --- a/.github/workflows/maven-snapshot.yml +++ b/.github/workflows/maven-snapshot.yml @@ -29,6 +29,14 @@ on: required: false type: boolean default: false + jboss_parent_override: + description: "Overrides for JBoss-Parent Central Profile" + required: false + type: string + # central.serverId : We use 'central-publisher' not 'central' + # central-sonatype.url: Due to https://github.com/jboss/jboss-parent-pom/issues/540 we need to override the URL + # This also activates the central-release profile to use the correct plugins and skips gpg tagging. + default: '-Dcentral.serverId=central-publisher -Dcentral.sonatype.url=https://central.sonatype.com/repository/maven-snapshots -Pcentral-release -Dgpg.skip' secrets: SONATYPE_USERNAME: @@ -86,4 +94,4 @@ jobs: MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.QUAY_DEVEL_USERNAME }} QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.QUAY_DEVEL_PASSWORD }} - INPUTS_SNAPSHOT_DEPLOY_COMMAND: ${{ inputs.snapshot_deploy_command }} + INPUTS_SNAPSHOT_DEPLOY_COMMAND: ${{ inputs.snapshot_deploy_command }} ${{ inputs.jboss_parent_override }} diff --git a/README.md b/README.md index ac643ad..857a2b8 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,13 @@ Workflow for deploying snapshot versions to Maven Central. - **Tasks**: Deploy our SNAPSHOT version of our project to Maven Central Optionally builds and pushes a Quarkus Jib image to Quay.io. +- **Inputs**: The following inputs are available to be overridden + * project_name : **Must** be set by te caller. + * java_version (default: `21`) + * snapshot_deploy_command (default `mvn -B -V deploy`) + * fetch_all_commits (default: `false`) + * quarkus_jib_image ( default: `false`) + * jboss_parent_override: This is used to override variables from the jboss-parent (default `-Dcentral.serverId=central-publisher -Dcentral.sonatype.url=https://central.sonatype.com/repository/maven-snapshots -Pcentral-release -Dgpg.skip`) ## Maven Set Version (`maven-set-version.yml`)