Skip to content

Commit

Permalink
fix: update goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akkuman committed Jan 23, 2024
1 parent af24dc7 commit 23e2e8a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 47 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.17
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
workdir: cmd/rotateproxy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 30 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
before:
hooks:
- go mod tidy
builds:
- skip: true
- env: [CGO_ENABLED=0]
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64
dir: .
main: ./cmd/rotateproxy
flags:
# trims path
- -trimpath
ldflags:
# use commit date instead of current date as main.date
# only needed if you actually use those things in your main package, otherwise can be ignored.
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
# Same as for github
# Note: it can only be one: either github, gitlab or gitea
github:
owner: akkuman
name: rotateproxy

draft: false

# You can add extra pre-existing files to the release.
# The filename on the release will be the last part of the path (base). If
# another file with the same name exists, the latest one found will be used.
# Defaults to empty.
extra_files:
- glob: ./build/*
name_template: 'v{{ .Version }}'
archives:
- format: zip
31 changes: 0 additions & 31 deletions cmd/rotateproxy/.goreleaser.yaml

This file was deleted.

0 comments on commit 23e2e8a

Please sign in to comment.