Skip to content

Commit 9e1885b

Browse files
committed
ci: setup gh action for releases (on tags)
Signed-off-by: Leonardo Di Donato <[email protected]>
1 parent 50e340f commit 9e1885b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: releasing
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Check out the source code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0 # Avoid running against a shallow clone
17+
18+
- name: Force fetch upstream tags
19+
run: git fetch --force --tags
20+
21+
- name: Set up Go 1.22
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: 1.22
25+
check-latest: true
26+
27+
- name: Release
28+
uses: goreleaser/goreleaser-action@v5
29+
with:
30+
version: latest
31+
args: release --clean
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)