Changes to release workflow (#83)

* Add workflow_dispatch trigger

* Remove branch check

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
This commit is contained in:
Henrique Santos 2023-10-13 15:38:36 +01:00 committed by GitHub
parent 248b9834ff
commit 7334c802ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ on:
push:
tags:
- "v*"
workflow_dispatch:
# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
@ -17,9 +18,6 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Check if tag belongs to main branch
if: endsWith(github.ref, 'main') == false
run: exit -1
- uses: actions/checkout@v4
with:
# Allow goreleaser to access older tag information.