Skip to content

Commit

Permalink
feat: skip upload brew formula if no PAT (#464)
Browse files Browse the repository at this point in the history
* feat: skip upload brew formula if no PAT

Signed-off-by: Lin Yang <[email protected]>

* feat: skip upload brew formula if no PAT

Signed-off-by: Lin Yang <[email protected]>

---------

Signed-off-by: Lin Yang <[email protected]>
  • Loading branch information
reaver-flomesh authored Nov 21, 2024
1 parent 61ec125 commit 0b44bf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ project_name: fsm
env:
- CGO_ENABLED=0
- GO111MODULE=on
- BREWS_SKIP_UPLOAD={{ if and (index .Env "HOMEBREW_RELEASE_PAT") .Env.HOMEBREW_RELEASE_PAT }}false{{ else }}true{{ end }}

before:
hooks:
Expand Down Expand Up @@ -112,9 +113,10 @@ brews:
description: Lightweight service mesh for Kubernetes East-West and North-South traffic management
license: Apache 2.0
test: |
system "#{bin}/fsm --version"
system "#{bin}/fsm version"
dependencies:
- name: go
type: optional
- name: git
type: optional
skip_upload: "{{ .Env.BREWS_SKIP_UPLOAD }}"

0 comments on commit 0b44bf5

Please sign in to comment.