diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index c2532d0bd..9323c4eb5 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -31,7 +31,7 @@ jobs: PACKAGE_PREFIX=$(echo $BRANCH_NAME | rev | cut -d/ -f1 | rev | tr '_' '-') # If the branch name is main, use the preview version. Otherwise, use the branch name as the version prefix. - if [[ "${BRANCH_NAME}" == "main" ]]; then + if [[ "${BRANCH_NAME}" == "main" || "${BRANCH_NAME}" =~ ^rc/ ]]; then PACKAGE_PREFIX="preview" fi