Skip to content

Commit

Permalink
ci: update release workflow to create tag manually (#1474)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase authored Oct 21, 2024
1 parent 7f428b5 commit 521e067
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 521e067

Please sign in to comment.