Skip to content

Commit 28f4470

Browse files
alacukupoiana
authored andcommitted
new(CI): add the release CI workflow
Signed-off-by: Aldo Lacuku <[email protected]>
1 parent f973774 commit 28f4470

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
# needed to upload archives as Github Releases.
10+
contents: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Fetch all tags
22+
run: git fetch --force --tags
23+
24+
- name: Setup Go
25+
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
26+
with:
27+
go-version: 1.19
28+
29+
- name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef #v3.0.0
31+
with:
32+
distribution: goreleaser
33+
version: v1.10.3
34+
args: release --rm-dist
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ snapshot:
3838
release:
3939
github:
4040
prerelease: auto
41+
42+
changelog:
43+
use: github

0 commit comments

Comments
 (0)