Skip to content

Commit

Permalink
Update .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt authored Sep 13, 2023
1 parent a2c26cb commit 8762e2b
Showing 1 changed file with 46 additions and 30 deletions.
76 changes: 46 additions & 30 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
name: goreleaser

on:
pull_request:
push:

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
gomod:
proxy: true
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^ci'
- '^refactor'
- Merge pull request
- Merge branch
- go mod tidy
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
format_overrides:
- goos: windows
format: zip

0 comments on commit 8762e2b

Please sign in to comment.