Skip to content

Commit 883ac6b

Browse files
chadiiichadiii
authored andcommitted
fix releaser
1 parent afd1fa4 commit 883ac6b

2 files changed

Lines changed: 37 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
- "*"
99

1010
jobs:
11-
1211
build:
1312
runs-on: ubuntu-latest
1413
steps:
@@ -17,11 +16,11 @@ jobs:
1716
fetch-depth: 2
1817
- uses: actions/setup-go@v2
1918
with:
20-
go-version: '1.14'
19+
go-version: "1.18"
2120
- name: Run coverage
2221
run: go test -cover -race -coverprofile=coverage.txt -covermode=atomic ./internal/... ./pkg/... -coverpkg=./...
2322
- name: Upload coverage to Codecov
24-
uses : codecov/codecov-action@v2
23+
uses: codecov/codecov-action@v2
2524
with:
2625
files: ./coverage.txt
2726

@@ -59,11 +58,11 @@ jobs:
5958
- name: Set up Go
6059
uses: actions/setup-go@v2
6160
with:
62-
go-version: 1.16
61+
go-version: 1.18
6362
- name: Run GoReleaser
64-
uses: goreleaser/goreleaser-action@v2
63+
uses: goreleaser/goreleaser-action@v3
6564
with:
6665
version: latest
6766
args: release --rm-dist
6867
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}

.goreleaser.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# .goreleaser.yaml
2+
builds:
3+
# You can have multiple builds defined as a yaml list
4+
- # Binary name.
5+
# Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
6+
# Default is the name of the project directory.
7+
binary: codebase-analyzer
8+
9+
# GOOS list to build for.
10+
# For more info refer to: https://golang.org/doc/install/source#environment
11+
# Defaults are darwin and linux.
12+
goos:
13+
- freebsd
14+
- windows
15+
- linux
16+
- darwin
17+
18+
env:
19+
- CGO_ENABLED=0
20+
21+
universal_binaries:
22+
- replace: true
23+
24+
brews:
25+
- name: codebase-analyzer
26+
homepage: "https://github.com/flagship-io/codebase-analyzer"
27+
tap:
28+
owner: flagship-io
29+
name: homebrew-flagship
30+
commit_author:
31+
name: flagship
32+
email: flagship@abtasty.com

0 commit comments

Comments
 (0)