Skip to content

Commit 6295f48

Browse files
committed
Implemented goreleaser workflow
1 parent 6679dc7 commit 6295f48

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/release.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
-
21+
name: Fetch all tags
22+
run: git fetch --force --tags
23+
-
24+
name: Set up Go
25+
uses: actions/setup-go@v3
26+
with:
27+
go-version: 1.18
28+
-
29+
name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@v3
31+
with:
32+
distribution: goreleaser
33+
version: latest
34+
args: release --rm-dist
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+

.goreleaser.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
builds:
2+
-
3+
id: "release"
4+
command: test
5+
skip: true
6+

0 commit comments

Comments
 (0)