From b2e7374b9af9b81a6724161abb9ee6a6f4072a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Palet?= Date: Thu, 25 Jan 2024 17:45:36 +0000 Subject: [PATCH] Publish Homebrew taps to stackitcloud/homebrew-tap repo --- .github/workflows/release.yaml | 3 +-- .goreleaser.yaml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3fb8a58c..e9cd1a96 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,5 +31,4 @@ jobs: with: args: release --clean env: - # GitHub sets the GITHUB_TOKEN secret automatically. - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6bc96273..39caa2d8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -57,4 +57,20 @@ nfpms: license: Apache 2.0 formats: - deb - - rpm \ No newline at end of file + - rpm + +brews: + - name: stackit-cli + repository: + owner: stackitcloud + name: homebrew-tap + commit_author: + name: CLI Release Bot + email: noreply@stackit.de + homepage: "https://github.com/stackitcloud/stackit-cli" + description: "A command-line interface to manage STACKIT resources." + license: "Apache-2.0" + # If set to auto, the release will not be uploaded to the homebrew tap repo + # if the tag has a prerelease indicator (e.g. v0.0.1-alpha1) + # Not setting it for now to test with a prerelease tag + # skip_upload: auto \ No newline at end of file