From 58c030fe91ad2b49de7af5efa17a4f02da83fc0f Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Tue, 20 Aug 2024 11:32:40 +0100 Subject: [PATCH] Support Release Candidate branches --- .github/workflows/ci-build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index ea66ca5..be40605 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -10,14 +10,16 @@ env: BUILD_PLATFORM: Any CPU PACK_PARAMETERS: '' NUGET_OUTPUT_FOLDER: nupkgs + BRANCH_RELEASE_CANDIDATE: rc/** on: push: branches: - main - - 'feature/**' - - 'task/**' - - 'spike/**' + - ${{ env.BRANCH_RELEASE_CANDIDATE }} + - feature/** + - task/** + - spike/** pull_request: branches: @@ -26,6 +28,8 @@ on: workflow_dispatch: jobs: + ########################################################## + ## Pipeline Configuration and Setup setup: name: Setup Pipeline @@ -58,6 +62,9 @@ jobs: then should_publish=true elif [ "${{ github.ref }}" == "refs/heads/main" ] + then + should_publish=true + elif [[ "${{ github.ref }}" == ${{ env.BRANCH_RELEASE_CANDIDATE }}* ]] then should_publish=true fi