Skip to content

Commit

Permalink
Support Release Candidate branches
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-martinsmith committed Aug 20, 2024
1 parent f1b7366 commit 58c030f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,6 +28,8 @@ on:
workflow_dispatch:

jobs:
##########################################################
## Pipeline Configuration and Setup
setup:
name: Setup Pipeline

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58c030f

Please sign in to comment.