Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Release from an annotated tag:
#
# git tag -a vX.Y.Z
# git push origin vX.Y.Z
#
# The tag message is a subject line, a blank line, then the release note.
# The subject stays in git; GoReleaser publishes the note above the
# generated changelog (release.header in .goreleaser.yaml). Git strips
# lines starting with # from tag messages, so write headings as **bold**
# text. --cleanup=verbatim keeps # lines, but in the editor it also keeps
# git's own # instructions, so pair it with -F <file>.
#
# The job refuses a lightweight tag: its .TagBody is the tagged commit's
# message body, which would go out as the release note.
name: Release
on:
push:
Expand All @@ -11,6 +25,13 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Require an annotated tag
run: |
git fetch --force --tags
if [ "$(git cat-file -t "$GITHUB_REF_NAME")" != tag ]; then
echo "::error::$GITHUB_REF_NAME is not an annotated tag, so its release note would be the commit message. Re-create it with git tag -a."
exit 1
fi
- uses: actions/setup-go@v7
with:
go-version: stable
Expand Down
8 changes: 5 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ archives:
formats: [zip]
checksum:
name_template: checksums.txt
release:
header: "{{ .TagBody }}"
homebrew_casks:
- name: clau
binaries:
Expand All @@ -26,7 +28,7 @@ homebrew_casks:
description: Launch Claude Code pre-configured in one word
hooks:
post:
install: |
if File.executable?("/usr/bin/xattr")
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/clau"], must_succeed: false
install_steps: |
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/clau"], must_succeed: false
end
Loading