Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit a64ceeb

Browse files
committed
Added GoReleaser
1 parent 83bca27 commit a64ceeb

3 files changed

Lines changed: 60 additions & 284 deletions

File tree

.github/workflows/release.yaml

Lines changed: 0 additions & 284 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
19+
20+
- name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v2
22+
with:
23+
distribution: goreleaser
24+
version: latest
25+
args: release --rm-dist --timeout 80m
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# .goreleaser.yaml
2+
builds:
3+
-
4+
env:
5+
- CGO_ENABLED=0
6+
goos:
7+
- darwin
8+
- linux
9+
- netbsd
10+
- openbsd
11+
- freebsd
12+
- plan9
13+
- windows
14+
goarch:
15+
- 386
16+
- amd64
17+
- arm
18+
- arm64
19+
goarm:
20+
- 6
21+
- 7
22+
ignore:
23+
- goos: darwin
24+
goarch: 386
25+
- goos: darwin
26+
goarch: arm
27+
- goos: netbsd
28+
goarch: arm64
29+
- goos: freebsd
30+
goarm: arm64
31+
- goos: plan0
32+
goarm: arm64
33+

0 commit comments

Comments
 (0)