From 634f60df965ea4565d10fc7850223bcf871fa040 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Fri, 24 Mar 2023 11:15:11 -0500 Subject: [PATCH] [CI] Update release workflow for 0.2.0 - Add 0.2.0 to hardcoded list of pre-releases - Fix branch creation for full GA step --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7e2eb25..3545c0c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: branches: - main paths-ignore: - - '.github/**' + - '.github/**' schedule: - cron: '0 10 * * *' # Once per day at 10am UTC workflow_dispatch: @@ -116,17 +116,17 @@ jobs: git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - name: Tag release (milestone) - if: ${{ needs.build_and_deploy.outputs.project_version == '0.1.0' || contains(needs.build_and_deploy.outputs.project_version, '-RC') || contains(needs.build_and_deploy.outputs.project_version, '-M') }} + if: ${{ startsWith(needs.build_and_deploy.outputs.project_version, '0.') || contains(needs.build_and_deploy.outputs.project_version, '-RC') || contains(needs.build_and_deploy.outputs.project_version, '-M') }} run: | echo "Tagging $REPO@$VERSION release." git tag v$VERSION git push --tags origin - name: Create branch and tag release (GA) - if: ${{ needs.build_and_deploy.outputs.project_version != '0.1.0' && !contains(needs.build_and_deploy.outputs.project_version, '-RC') && !contains(needs.build_and_deploy.outputs.project_version, '-M') }} + if: ${{ !startsWith(needs.build_and_deploy.outputs.project_version, '0.') && !contains(needs.build_and_deploy.outputs.project_version, '-RC') && !contains(needs.build_and_deploy.outputs.project_version, '-M') }} run: | echo "Tagging $REPO@$VERSION and creating release branch." git checkout -b $VERSION - git push origin $VERSION + git push --set-upstream origin $VERSION git tag v$VERSION git push --tags origin