diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4d13b10..f2bc1444 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file