Skip to content

Commit

Permalink
fix release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moshebe committed Jul 22, 2022
1 parent 780e7bd commit 4d7037f
Showing 1 changed file with 28 additions and 36 deletions.
64 changes: 28 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: gtrace
homepage: https://github.com/moshebe/gtrace
tap:
owner: moshebe
name: homebrew-pkg
name: release
on:
push:
tags:
- "*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
id: go

- name: Release
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}

0 comments on commit 4d7037f

Please sign in to comment.