From 780e7bd371603be6481e1e3ab4a8279bc5dee393 Mon Sep 17 00:00:00 2001 From: Moshe Beladev Date: Sat, 23 Jul 2022 02:49:43 +0300 Subject: [PATCH] fix release.yml --- .github/workflows/release.yml | 64 ++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14255209..c4d13b10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,28 +1,36 @@ -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@v2 - with: - fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ - - - name: Set up Go 1.17 - uses: actions/setup-go@v2 - with: - go-version: 1.17 - id: go - - - name: Release - uses: goreleaser/goreleaser-action@master - with: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }} \ No newline at end of file +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