From d114044b29d51e49a47513bf7aed748dd3b41a31 Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Thu, 21 Mar 2024 13:03:44 +0000 Subject: [PATCH] Update nexus sync steps - Relates #1033 --- .github/release-files-spec.json | 12 +----------- .github/workflows/central-sync-close.yml | 3 +-- .github/workflows/central-sync-release.yml | 2 +- .github/workflows/release-ga.yml | 6 +----- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/release-files-spec.json b/.github/release-files-spec.json index 4ceba9f6..75096db5 100644 --- a/.github/release-files-spec.json +++ b/.github/release-files-spec.json @@ -7,17 +7,7 @@ { "@build.name": "${buildname}", "@build.number": "${buildnumber}", - "path": {"$match": "org*"} - }, - { - "$or": [ - { - "name": {"$match": "*.pom"} - }, - { - "name": {"$match": "*.jar"} - } - ] + "path": { "$match": "org/springframework/shell/spring-shell-*" } } ] } diff --git a/.github/workflows/central-sync-close.yml b/.github/workflows/central-sync-close.yml index 50ad269d..8cfca17c 100644 --- a/.github/workflows/central-sync-close.yml +++ b/.github/workflows/central-sync-close.yml @@ -13,9 +13,8 @@ jobs: steps: # Request release promotion repo - - uses: jvalkeal/nexus-sync@v0 + - uses: spring-io/nexus-sync-action@main with: - url: ${{ secrets.OSSRH_URL }} username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }} password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }} staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} diff --git a/.github/workflows/central-sync-release.yml b/.github/workflows/central-sync-release.yml index 3fc5b56d..d1a58565 100644 --- a/.github/workflows/central-sync-release.yml +++ b/.github/workflows/central-sync-release.yml @@ -13,7 +13,7 @@ jobs: steps: # Request release promotion repo - - uses: jvalkeal/nexus-sync@main + - uses: spring-io/nexus-sync-action@main with: url: ${{ secrets.OSSRH_URL }} username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }} diff --git a/.github/workflows/release-ga.yml b/.github/workflows/release-ga.yml index 74b1ab07..56c520bf 100644 --- a/.github/workflows/release-ga.yml +++ b/.github/workflows/release-ga.yml @@ -165,9 +165,8 @@ jobs: jf rt download \ --spec .github/release-files-spec.json \ --spec-vars "buildname=$JFROG_CLI_BUILD_NAME;buildnumber=$JFROG_CLI_BUILD_NUMBER" - - uses: jvalkeal/nexus-sync@v0 + - uses: spring-io/nexus-sync-action@main with: - url: ${{ secrets.OSSRH_URL }} username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }} password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }} staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} @@ -178,6 +177,3 @@ jobs: release: true release-timeout: 5400 generate-checksums: true - pgp-sign: true - pgp-sign-passphrase: ${{ secrets.GPG_PASSPHRASE }} - pgp-sign-private-key: ${{ secrets.GPG_PRIVATE_KEY }}