Skip to content

Commit d97b719

Browse files
Go releaser (#2)
* add goreleaser and an action * pin to go1.13.1 * on release on tags * Update .goreleaser.yml * add brew config * add line break
1 parent add93c8 commit d97b719

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
3+
on:
4+
create:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v1
15+
-
16+
name: Set up Go
17+
uses: actions/setup-go@v1
18+
with:
19+
go-version: '1.13.1'
20+
-
21+
name: Run GoReleaser
22+
uses: goreleaser/goreleaser-action@v1
23+
with:
24+
version: latest
25+
args: release

.goreleaser.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
project_name: tickgit
2+
before:
3+
hooks:
4+
- go mod tidy
5+
builds:
6+
-
7+
main: ./cmd/main.go
8+
env:
9+
- CGO_ENABLED=0
10+
brews:
11+
github:
12+
owner: augmentable-dev
13+
name: homebrew-tickgit
14+
commit_author:
15+
name: augmentable
16+
17+
homepage: "https://augmentable.io/"
18+
description: "Tickets as config"
19+
archives:
20+
- replacements:
21+
darwin: Darwin
22+
linux: Linux
23+
windows: Windows
24+
386: i386
25+
amd64: x86_64
26+
checksum:
27+
name_template: 'checksums.txt'
28+
snapshot:
29+
name_template: "{{ .Tag }}-next"
30+
changelog:
31+
sort: asc
32+
filters:
33+
exclude:
34+
- '^docs:'
35+
- '^test:'

0 commit comments

Comments
 (0)