Skip to content

Commit

Permalink
Add Release Bundle job as a part of Release WF
Browse files Browse the repository at this point in the history
* Add optional `bundleName` into `spring-artifactory-gradle-release.yml` and `spring-artifactory-maven-release.yml` workflows
* Make `spring-release-bundle` conditional based on the presence of `inputs.bundleName`
  • Loading branch information
artembilan committed Dec 20, 2024
1 parent d064ff6 commit 13e4f1d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/spring-artifactory-gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ on:
required: false
type: string
default: ubuntu-latest
bundleName:
description: 'The Artifactory Bundle Name'
required: false
type: string

secrets:
DEVELOCITY_ACCESS_KEY:
Expand Down Expand Up @@ -133,6 +137,19 @@ jobs:
runner: ${{ inputs.runner }}
secrets: inherit

spring-release-bundle:
needs: [ releaseVersion, staging, promote-milestone, promote-ga ]
name: Release Bundle for ${{ needs.releaseVersion.outputs.releaseVersion }}
if: inputs.bundleName
uses: ./.github/workflows/spring-enterprise-release-bundle.yml
with:
buildName: ${{ needs.staging.outputs.buildName }}
buildNumber: ${{ needs.staging.outputs.buildNumber }}
artifactoryUrl: ${{ inputs.artifactoryUrl }}
bundleName: ${{ inputs.bundleName }}
releaseVersion: ${{ needs.releaseVersion.outputs.releaseVersion }}
secrets: inherit

finalize:
if: ${{ !(failure() || cancelled()) }}
needs: [releaseVersion, promote-milestone, promote-ga]
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/spring-artifactory-maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ on:
required: false
type: string
default: ubuntu-latest
bundleName:
description: 'The Artifactory Bundle Name'
required: false
type: string

secrets:
DEVELOCITY_ACCESS_KEY:
Expand Down Expand Up @@ -132,6 +136,19 @@ jobs:
runner: ${{ inputs.runner }}
secrets: inherit

spring-release-bundle:
needs: [ releaseVersion, staging, promote-milestone, promote-ga ]
name: Release Bundle for ${{ needs.releaseVersion.outputs.releaseVersion }}
if: inputs.bundleName
uses: ./.github/workflows/spring-enterprise-release-bundle.yml
with:
buildName: ${{ needs.staging.outputs.buildName }}
buildNumber: ${{ needs.staging.outputs.buildNumber }}
artifactoryUrl: ${{ inputs.artifactoryUrl }}
bundleName: ${{ inputs.bundleName }}
releaseVersion: ${{ needs.releaseVersion.outputs.releaseVersion }}
secrets: inherit

finalize:
if: ${{ !(failure() || cancelled()) }}
needs: [releaseVersion, promote-milestone, promote-ga]
Expand Down

0 comments on commit 13e4f1d

Please sign in to comment.