From 7f702f973ee365cca92f7c62c50fd316678bfadb Mon Sep 17 00:00:00 2001 From: Joeri Dijkstra Date: Fri, 9 Oct 2026 13:30:27 +0200 Subject: [PATCH] ci: publish Homebrew cask to eyra/homebrew-tap on release --- .github/workflows/release.yml | 1 + .goreleaser.yml | 19 +++++++++++++++++++ README.md | 6 ++++++ 3 files changed, 26 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1181805..434b3a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,3 +49,4 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_DEPLOY_KEY: ${{ secrets.HOMEBREW_TAP_DEPLOY_KEY }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 27fcfa0..3caddde 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,6 +28,25 @@ archives: checksum: name_template: "checksums.txt" +homebrew_casks: + - name: flux-cli + binaries: + - flux + description: Command-line interface for Flux project management + homepage: https://github.com/eyra/flux-cli + repository: + owner: eyra + name: homebrew-tap + git: + url: git@github.com:eyra/homebrew-tap.git + private_key: '{{ index .Env "HOMEBREW_TAP_DEPLOY_KEY" }}' + hooks: + post: + install: | + if OS.mac? + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/flux"] + end + release: github: owner: eyra diff --git a/README.md b/README.md index 57f7c05..4cb58cc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,12 @@ Command-line interface for Flux project management. ## Installation +```bash +brew install eyra/tap/flux-cli +``` + +Or with Go: + ```bash go install github.com/eyra/flux-cli@latest ```