Skip to content

Commit 5646ecd

Browse files
committed
chore: Add Homebrew Cask
Signed-off-by: Arthur Amstutz <arthur.amstutz@corp.ovh.com>
1 parent 83b7023 commit 5646ecd

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
jobs:
1717
goreleaser:
1818
runs-on: ubuntu-latest
19+
environment: release
1920
steps:
2021
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2122
with:
@@ -32,4 +33,5 @@ jobs:
3233
env:
3334
# GitHub sets the GITHUB_TOKEN secret automatically.
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
36+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
37+
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,19 @@ release:
6666
---
6767
6868
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
69+
70+
homebrew_casks:
71+
- name: ovhcloud
72+
binary: ovhcloud
73+
url:
74+
template: "https://github.com/ovh/ovhcloud-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
75+
using: ":homebrew_curl"
76+
repository:
77+
owner: ovh
78+
name: homebrew-tap
79+
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
80+
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
81+
directory: Casks
82+
caveats: "See https://github.com/ovh/ovhcloud-cli for usage."
83+
homepage: "https://github.com/ovh/ovhcloud-cli"
84+
description: "OVHcloud CLI - Command line interface for OVHcloud."

0 commit comments

Comments
 (0)