-
Notifications
You must be signed in to change notification settings - Fork 1
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
e199d14
commit c9bee8a
Showing
5 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
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
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,4 +1,4 @@ | ||
name: Promote Staged GA release from Artifactory to Maven Central | ||
name: Promote Staged GA release (optional to Maven Central) | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -27,8 +27,6 @@ on: | |
default: ubuntu-latest | ||
|
||
secrets: | ||
OSSRH_URL: | ||
required: false | ||
OSSRH_S01_TOKEN_USERNAME: | ||
required: false | ||
OSSRH_S01_TOKEN_PASSWORD: | ||
|
@@ -40,11 +38,11 @@ on: | |
|
||
env: | ||
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }} | ||
OSSRH_URL: ${{ secrets.OSSRH_URL }} | ||
OSSRH_STAGING_PROFILE_NAME: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} | ||
WORKFLOWS_REF: main | ||
|
||
jobs: | ||
release-to-central: | ||
promote-ga: | ||
runs-on: ${{ inputs.runner }} | ||
steps: | ||
|
||
|
@@ -60,17 +58,16 @@ jobs: | |
run: jfrog rt build-promote ${{ inputs.buildName }} ${{ inputs.buildNumber }} ${{ inputs.targetRepository }} --project=${{ inputs.artifactoryProjectKey }} | ||
|
||
- name: Download Release Files | ||
if: env.OSSRH_URL | ||
if: env.OSSRH_STAGING_PROFILE_NAME | ||
run: | | ||
jfrog rt download \ | ||
--spec utils/release-files-spec.json \ | ||
--spec-vars "buildname=${{ inputs.buildName }};buildnumber=${{ inputs.buildNumber }}" | ||
- uses: spring-io/[email protected] | ||
id: nexus | ||
if: env.OSSRH_URL | ||
if: env.OSSRH_STAGING_PROFILE_NAME | ||
with: | ||
url: ${{ env.OSSRH_URL }} | ||
username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }} | ||
password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }} | ||
staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} | ||
|
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