Skip to content

Commit 72d8bbb

Browse files
authored
Merge pull request #57 from jrswab/create-new-binaries
Automatically Create New Binaries on Release
2 parents b0e4a29 + b93dc4b commit 72d8bbb

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# .github/workflows/release.yml
2+
# Create binaries on each release
3+
name: goreleaser
4+
5+
on:
6+
push:
7+
tags:
8+
- 'v*' # only version tags trigger a run
9+
10+
permissions:
11+
contents: write # so GoReleaser can create the GitHub Release
12+
13+
jobs:
14+
goreleaser:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # fetch all tags so GoReleaser sees them
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: stable
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v6
27+
with:
28+
distribution: goreleaser
29+
version: "~> v1"
30+
args: release --clean
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Added
10+
- release.yml workflow to automatically create binaries on each new release.
911

1012
## [1.2.1] - 2025-05-09
1113
### Fixed

0 commit comments

Comments
 (0)