Skip to content

Commit

Permalink
try to customize release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbkane committed Apr 25, 2024
1 parent b4c2e0f commit ac35382
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
# requires go.sum file (i.e., external libraries)
cache: true
go-version-file: go.mod
- name: Write Release Notes
run: echo 'See [CHANGELOG](${{ github.server_url }}/${{ github.repository }}/blob/master/CHANGELOG.md)' > tmp_release_notes.md
# https://github.com/marketplace/actions/goreleaser-action
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP: ${{ secrets.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
args: release --rm-dist
args: "release --clean --release-notes tmp_release_notes.md"
version: latest
name: Release
on: # yamllint disable-line rule:truthy
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ brews:
warning. I'm not willing to pay that to give away free apps.
See https://www.macworld.com/article/3140183/how-to-install-an-app-in-macos-sierra-thats-not-signed-by-a-developer.html to work around that
description: Example Go CLI to model tooling
folder: Formula
directory: Formula
homepage: https://github.com/bbkane/envelope
repository:
name: homebrew-tap
owner: bbkane
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: '{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}'
token: "{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}"
builds:
- env:
- CGO_ENABLED=0
Expand All @@ -38,8 +38,8 @@ builds:
changelog:
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
sort: asc
checksum:
name_template: checksums.txt
Expand All @@ -50,4 +50,4 @@ scoops:
repository:
name: scoop-bucket
owner: bbkane
token: '{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}'
token: "{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}"

0 comments on commit ac35382

Please sign in to comment.