Skip to content

Commit e924dee

Browse files
committed
Enable go-releaser
1 parent fd7b034 commit e924dee

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/tests.yaml

+25-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: icy
22

33
on:
44
push:
5-
branches-ignore:
6-
- nothing-does-matter
5+
branches:
6+
- 'master'
7+
tags:
8+
- 'v*'
9+
pull_request:
710

811
jobs:
912
smoke:
@@ -16,3 +19,23 @@ jobs:
1619
- name: smoke
1720
run: |
1821
make tests
22+
23+
goreleaser:
24+
if: success()
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 0
31+
- name: Set up Go
32+
uses: actions/setup-go@v2
33+
with:
34+
go-version: 1.14
35+
- name: Run GoReleaser
36+
uses: goreleaser/goreleaser-action@v2
37+
with:
38+
version: v0.143.0
39+
args: release --rm-dist
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
builds:
2+
- env:
3+
- CGO_ENABLED=0
4+
archives:
5+
- replacements:
6+
darwin: Darwin
7+
linux: Linux
8+
386: i386
9+
amd64: x86_64
10+
11+
12+
checksum:
13+
name_template: 'checksums.txt'
14+
snapshot:
15+
name_template: "{{ .Tag }}-next"

0 commit comments

Comments
 (0)