From 521e0670a02f3a9b8bdfb4f1e663f1580dbfe658 Mon Sep 17 00:00:00 2001 From: Anish Ramasekar Date: Mon, 21 Oct 2024 12:50:25 -0700 Subject: [PATCH] ci: update release workflow to create tag manually (#1474) Signed-off-by: Anish Ramasekar --- .github/workflows/create-release.yaml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 79eb7cb9..44f112d5 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -1,18 +1,15 @@ name: create_release on: - workflow_dispatch: - pull_request: - branches: - - main - - release-** - types: [closed] +on: + push: + tags: + - 'v*' permissions: contents: write jobs: create-release: - if: github.event.pull_request.merged == true && contains(github.event.pull_request.title, 'update manifest and helm charts') runs-on: ubuntu-20.04 steps: - name: Harden Runner @@ -28,12 +25,6 @@ jobs: with: go-version: "1.23" check-latest: true - - id: get-tag - name: Get tag - run: echo "tag=$(echo ${{ github.event.pull_request.head.ref }} | sed -e 's/release-//g')" >> $GITHUB_OUTPUT - - name: Create tag - run: | - git tag ${{ steps.get-tag.outputs.tag }} - name: Goreleaser uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0 with: