Skip to content

Commit

Permalink
Prepare release v0.5.0 (#23)
Browse files Browse the repository at this point in the history
Release v0.5.0 with a Homebrew bottle.
  • Loading branch information
abhinav committed Sep 13, 2021
1 parent 93bf3a3 commit 475118a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ env.VERSION }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
24 changes: 22 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- ./scripts/check-version.sh {{.Version}}

builds:
- main: ./cmd/restack
binary: restack
Expand All @@ -12,17 +11,38 @@ builds:
- linux
- windows
- darwin

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64

brews:
- tap:
owner: abhinav
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_msg_template: "{{ .ProjectName }}: Update formula to {{ .Tag }}"
commit_author:
name: Abhinav Gupta
email: [email protected]
homepage: https://github.com/abhinav/restack
description: "Makes interactive Git rebase nicer."
license: "MIT"
skip_upload: auto
dependencies:
- name: git
test: |
system "#{bin}/restack -version"
checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ incminor .Tag }}-dev"

changelog:
# A commit log is not a changelog.
skip: true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Releases
========

v0.5.0 (2021-09-13)
-------------------

- Release Homebrew bottles.


v0.4.0 (2021-08-15)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For example, if you have `$HOME/bin` on your `$PATH`,

OS=$(uname -s)
ARCH=$(uname -m)
VERSION=0.4.0
VERSION=0.5.0
URL="https://github.com/abhinav/restack/releases/download/v$VERSION/restack_${VERSION}_${OS}_${ARCH}.tar.gz"
curl -L "$URL" | tar xzv -C ~/bin restack

Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ package restack
// Note that semantic versioning in this repository applies to the `restack`
// executable, not to its library components. These APIs may break at any
// time without warning.
const Version = "0.4.0"
const Version = "0.5.0"

0 comments on commit 475118a

Please sign in to comment.