Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 1c3e277

Browse files
committed
update release workflow
1 parent 0459021 commit 1c3e277

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release-binary.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Release Binaries
22

33
on:
4-
release:
5-
types: [ published ]
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- "v[0-9]+.[0-9]+.[0-9]+*" # Push events to matching v*, i.e. v1.0, v20.15.10, v1.2.3-hotfix, etc.
8+
9+
permissions:
10+
contents: write # for goreleaser/goreleaser-action to create a GitHub release
611

712
jobs:
813
binary:
@@ -14,7 +19,7 @@ jobs:
1419
- name: Set up Go
1520
uses: actions/setup-go@v4
1621
with:
17-
go-version: 1.19
22+
go-version: 1.21
1823

1924
- name: Checkout
2025
uses: actions/checkout@v3

0 commit comments

Comments
 (0)