Skip to content

Commit 729e2cc

Browse files
committed
refactor(release): support homebrew
1 parent f794c12 commit 729e2cc

File tree

5 files changed

+4
-53
lines changed

5 files changed

+4
-53
lines changed

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
args: release --rm-dist
5252
env:
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
5455
AC_USERNAME: ${{ secrets.AC_USERNAME }}
5556
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
5657
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

.goreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ brews:
130130
owner: let-sh
131131
name: homebrew-tap
132132
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
133-
token: "{{ .Env.GITHUB_TOKEN }}"
133+
token: "{{ .Env.GH_RELEASE_TOKEN }}"
134134

135135
url_template: "http://install.let-sh.com/{{ .ArtifactName }}"
136136

137137
# Allows you to set a custom download strategy. Note that you'll need
138138
# to implement the strategy and add it to your tap repository.
139139
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
140140
# Default is empty.
141-
# download_strategy: CurlDownloadStrategy.
141+
# download_strategy: CurlDownloadStrategy.
142142

143143
# Allows you to add a custom require_relative at the top of the formula template
144144
# Default is empty
@@ -176,12 +176,11 @@ brews:
176176
# If set to auto, the release will not be uploaded to the homebrew tap
177177
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
178178
# Default is false.
179-
skip_upload: true
179+
# skip_upload: true
180180

181181
# Packages your package depends on.
182182
dependencies:
183183
- name: git
184-
- name: upx
185184
- name: zsh
186185
type: optional
187186

gon_amd.hcl

Lines changed: 0 additions & 22 deletions
This file was deleted.

gon_arm.hcl

Lines changed: 0 additions & 22 deletions
This file was deleted.

handler/deploy/detect.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
8585
return "gateway"
8686
}
8787

88-
if utils.ItemExists(packages, "@surgio/gateway") {
89-
c.Type = "surgio"
90-
return "surgio"
91-
}
92-
9388
if utils.ItemExists(packages, "express") {
9489
c.Type = "express"
9590
return "express"

0 commit comments

Comments
 (0)