From e9026800ed67859deb0a4f31e832a4586bee1d45 Mon Sep 17 00:00:00 2001 From: ramin Date: Fri, 8 Mar 2024 10:09:55 +0000 Subject: [PATCH] ci(triggers): change release process from tag push to release publish (#3227) Updates the CI workflow trigger to run specifically from a release publish, vs pushing a tag. This will separate any testing we do with with any pre-release or temporary tags from triggering the GitHub workflow to generate a release. Instead, only the release published event should trigger this. --------- Co-authored-by: Matthew Sevey --- .github/workflows/ci_release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 3b95c42b64..3c17aca2e3 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -4,9 +4,8 @@ on: push: branches: - main - # Trigger on version tags - tags: - - "v*" + release: + types: [published] pull_request: workflow_dispatch: inputs: @@ -111,7 +110,7 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) + github.event_name == 'release' permissions: "write-all" steps: - uses: actions/checkout@v4