Skip to content

Commit 23e2e8a

Browse files
committed
fix: update goreleaser.yml
1 parent af24dc7 commit 23e2e8a

File tree

3 files changed

+32
-47
lines changed

3 files changed

+32
-47
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
uses: actions/setup-go@v4
1717
with:
1818
go-version: 1.17
19+
cache: true
1920

2021
- name: Run GoReleaser
2122
uses: goreleaser/goreleaser-action@v5
2223
with:
24+
distribution: goreleaser
2325
version: latest
2426
args: release --clean
25-
workdir: cmd/rotateproxy
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
1+
before:
2+
hooks:
3+
- go mod tidy
14
builds:
2-
- skip: true
5+
- env: [CGO_ENABLED=0]
6+
goos:
7+
- linux
8+
- windows
9+
- darwin
10+
- freebsd
11+
goarch:
12+
- amd64
13+
- arm64
14+
dir: .
15+
main: ./cmd/rotateproxy
16+
flags:
17+
# trims path
18+
- -trimpath
19+
ldflags:
20+
# use commit date instead of current date as main.date
21+
# only needed if you actually use those things in your main package, otherwise can be ignored.
22+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
323
checksum:
424
name_template: 'checksums.txt'
25+
changelog:
26+
sort: asc
27+
filters:
28+
exclude:
29+
- '^docs:'
30+
- '^test:'
531
release:
6-
# Same as for github
7-
# Note: it can only be one: either github, gitlab or gitea
8-
github:
9-
owner: akkuman
10-
name: rotateproxy
11-
12-
draft: false
13-
14-
# You can add extra pre-existing files to the release.
15-
# The filename on the release will be the last part of the path (base). If
16-
# another file with the same name exists, the latest one found will be used.
17-
# Defaults to empty.
18-
extra_files:
19-
- glob: ./build/*
32+
name_template: 'v{{ .Version }}'
33+
archives:
34+
- format: zip

cmd/rotateproxy/.goreleaser.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)