Skip to content

Commit 64425f8

Browse files
committed
add workflow dispatch
1 parent f799f20 commit 64425f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: goreleaser
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version to release'
8+
required: true
9+
default: 'v0.0.0'
10+
511
push:
612
# run only against tags
713
tags:
@@ -24,6 +30,11 @@ jobs:
2430
with:
2531
go-version: '>=1.20'
2632
cache: true
33+
34+
- name: Create tag
35+
run: git tag ${{ github.event.inputs.version }}
36+
if: github.event_name == 'workflow_dispatch'
37+
2738
- uses: goreleaser/goreleaser-action@v4
2839
with:
2940
distribution: goreleaser

0 commit comments

Comments
 (0)