Skip to content

Commit d145bb1

Browse files
authored
Add Goreleaser (#62)
1 parent c330d8c commit d145bb1

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/release.yaml

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

.goreleaser.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
project_name: review-bot
4+
5+
before:
6+
hooks:
7+
- go mod download
8+
builds:
9+
- main: ./main.go
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- darwin
15+
- windows
16+
archives:
17+
- format: binary
18+
checksum:
19+
name_template: "checksums.txt"
20+
snapshot:
21+
name_template: "{{ .Tag }}-next-{{.Commit}}"
22+
23+
release:
24+
github:
25+
owner: sj14
26+
name: review-bot
27+
disable: false
28+
draft: false
29+
prerelease: auto
30+
changelog:
31+
filters:
32+
exclude:
33+
- typo

0 commit comments

Comments
 (0)