From 03043693ce1eac48c208a5d44d657142efef8010 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 21 Oct 2024 13:15:39 +0100 Subject: [PATCH] Restore previous build-name config for snapshots and releases --- .github/workflows/build-and-deploy-snapshot.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy-snapshot.yml b/.github/workflows/build-and-deploy-snapshot.yml index a77698bd..bbc755b2 100644 --- a/.github/workflows/build-and-deploy-snapshot.yml +++ b/.github/workflows/build-and-deploy-snapshot.yml @@ -25,7 +25,7 @@ jobs: with: artifact-properties: | /**/spring-restdocs-*.zip::zip.type=docs,zip.deployed=false - build-name: ${{ format('spring-restdocs-{0}', github.ref_name) }} + build-name: 'spring-restdocs-3.0.x' folder: 'deployment-repository' password: ${{ secrets.ARTIFACTORY_PASSWORD }} repository: ${{ 'libs-snapshot-local' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c19cae6..73b4e72c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Stage Release uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1 with: - build-name: ${{ format('spring-restdocs-{0}', github.ref_name) }} + build-name: ${{ format('spring-restdocs-{0}', steps.build-and-publish.outputs.version) }} folder: 'deployment-repository' password: ${{ secrets.ARTIFACTORY_PASSWORD }} repository: 'libs-staging-local'