Skip to content

Commit e200ff6

Browse files
authored
Merge pull request #18 from cybrota/feat/add-releases
ci: add workflow
2 parents 91a2b9b + 97e258d commit e200ff6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
# run only against tags
6+
tags:
7+
- "*"
8+
9+
permissions:
10+
contents: write
11+
# packages: write
12+
# issues: write
13+
# id-token: write
14+
15+
jobs:
16+
goreleaser:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21+
with:
22+
fetch-depth: 0
23+
- name: Set up Go
24+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
25+
with:
26+
go-version: stable
27+
- name: Run GoReleaser
28+
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552
29+
with:
30+
distribution: goreleaser
31+
version: "~> v2"
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)