Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 6dd6bd9

Browse files
committed
add workflows
Signed-off-by: Dentrax <furkan.turkal@hotmail.com>
1 parent acd5434 commit 6dd6bd9

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-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+
pull_request:
5+
push:
6+
tags:
7+
- 'v*.*.*'
8+
9+
jobs:
10+
goreleaser:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.15
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v2
21+
with:
22+
version: latest
23+
args: release --rm-dist
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
env:
2+
- CGO_ENABLED=0
3+
- GOFLAGS=-mod=vendor
4+
- GO111MODULE=auto
5+
6+
before:
7+
hooks:
8+
- go mod vendor
9+
10+
builds:
11+
- id: binary
12+
goos:
13+
- linux
14+
- darwin
15+
- windows
16+
goarch:
17+
- amd64
18+
ldflags:
19+
- -s -w
20+
21+
archives:
22+
- builds:
23+
- binary
24+
replacements:
25+
darwin: Darwin
26+
linux: Linux
27+
windows: Windows
28+
386: x86
29+
amd64: x86_64
30+
format_overrides:
31+
- goos: windows
32+
format: zip
33+
files: ["LICENSE"]
34+
35+
checksum:
36+
name_template: 'checksums.txt'
37+
algorithm: sha256
38+
39+
snapshot:
40+
name_template: "{{ .Tag }}-next"
41+
42+
changelog:
43+
sort: asc
44+
filters:
45+
exclude:
46+
- '^docs:'
47+
- '^test:'

0 commit comments

Comments
 (0)