Skip to content

Commit

Permalink
refactor(release): support homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
fredliang44 committed Jul 31, 2022
1 parent f794c12 commit 729e2cc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 53 deletions.
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
AC_USERNAME: ${{ secrets.AC_USERNAME }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
7 changes: 3 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ brews:
owner: let-sh
name: homebrew-tap
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.GITHUB_TOKEN }}"
token: "{{ .Env.GH_RELEASE_TOKEN }}"

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

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

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

# Packages your package depends on.
dependencies:
- name: git
- name: upx
- name: zsh
type: optional

Expand Down
22 changes: 0 additions & 22 deletions gon_amd.hcl

This file was deleted.

22 changes: 0 additions & 22 deletions gon_arm.hcl

This file was deleted.

5 changes: 0 additions & 5 deletions handler/deploy/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
return "gateway"
}

if utils.ItemExists(packages, "@surgio/gateway") {
c.Type = "surgio"
return "surgio"
}

if utils.ItemExists(packages, "express") {
c.Type = "express"
return "express"
Expand Down

0 comments on commit 729e2cc

Please sign in to comment.