-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf3dc63
commit 266407e
Showing
6 changed files
with
89 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
.github/workflows/release-staging.yml → .github/workflows/release.yml
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: Build and Stage Release | ||
name: Perform Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.' | ||
required: true | ||
|
||
run-name: Release version ${{ inputs.releaseVersion }} | ||
type: string | ||
|
||
jobs: | ||
staging: | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-gradle-release-staging.yml@main | ||
release: | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-release.yml@main | ||
with: | ||
releaseVersion: ${{ inputs.releaseVersion }} | ||
repositoryTeam: artembilan,garyrussell | ||
secrets: inherit |
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Perform Release | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
releaseVersion: | ||
description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.' | ||
required: true | ||
type: string | ||
repositoryTeam: | ||
description: 'Comma-separate GitHub user names for repository team members to exclude from contributors' | ||
required: false | ||
type: string | ||
|
||
run-name: Release version ${{ inputs.releaseVersion }} | ||
|
||
env: | ||
IS_GA: ${{ (contains(inputs.releaseVersion, '-M') || contains(inputs.releaseVersion, '-RC')) && false || true }} | ||
|
||
jobs: | ||
staging: | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-gradle-release-staging.yml@main | ||
with: | ||
releaseVersion: ${{ inputs.releaseVersion }} | ||
secrets: inherit | ||
|
||
verify-staged: | ||
needs: staging | ||
uses: ./.github/workflows/verify-staged-artifacts.yml | ||
with: | ||
releaseVersion: ${{ inputs.releaseVersion }} | ||
secrets: inherit | ||
|
||
promote_milestone: | ||
if: ${{ !env.IS_GA }} | ||
needs: verify-staged | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-milestone.yml@main | ||
with: | ||
buildName: $JFROG_CLI_BUILD_NAME | ||
buildNumber: $JFROG_CLI_BUILD_NUMBER | ||
secrets: inherit | ||
|
||
promote_ga: | ||
if: ${{ env.IS_GA }} | ||
needs: verify-staged | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-central.yml@main | ||
with: | ||
buildName: $JFROG_CLI_BUILD_NAME | ||
buildNumber: $JFROG_CLI_BUILD_NUMBER | ||
secrets: inherit | ||
|
||
finalize: | ||
needs: [promote_milestone, promote_ga] | ||
uses: spring-projects/spring-integration-aws/.github/workflows/spring-finalize-release.yml@main | ||
with: | ||
milestone: ${{ inputs.releaseVersion }} | ||
repositoryTeam: ${{ inputs.repositoryTeam }} | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Verify Staged Artifacts | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
releaseVersion: | ||
description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
verify-staged: | ||
needs: staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
cache: 'maven' | ||
|
||
- name: Download staged artifact | ||
run: mvn dependency:get -DrepoUrl=https://repo.spring.io/libs-staging-local -Dartifact=org.springframework.integration:spring-integration-aws:${{ inputs.releaseVersion }} |