diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 57f9791..65226ce 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 0cceddb..6637e67 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -130,7 +130,7 @@ 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 }}" @@ -138,7 +138,7 @@ brews: # 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 @@ -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 diff --git a/gon_amd.hcl b/gon_amd.hcl deleted file mode 100644 index a22eb1d..0000000 --- a/gon_amd.hcl +++ /dev/null @@ -1,22 +0,0 @@ -# The path follows a pattern -# ./dist/BUILD-ID_TARGET/BINARY-NAME -source = ["./dist/lets_macos_amd_darwin_amd64/lets"] -bundle_id = "com.oasis-networks.cli" - -apple_id { - username = "liangzhib@163.com" - password = "@env:AC_PASSWORD" -} - -sign { - application_identity = "Developer ID Application: Oasis Networks, Inc." -} - -dmg{ - output_path= "./dist/lets_macos_amd_darwin_amd64/lets.dmg" - volume_name= "let.sh cli" -} - -zip { - output_path = "./dist/lets_macos_amd_darwin_amd64/lets.zip" -} \ No newline at end of file diff --git a/gon_arm.hcl b/gon_arm.hcl deleted file mode 100644 index 1365818..0000000 --- a/gon_arm.hcl +++ /dev/null @@ -1,22 +0,0 @@ -# The path follows a pattern -# ./dist/BUILD-ID_TARGET/BINARY-NAME -source = ["./dist/lets_macos_arm_darwin_arm64/lets"] -bundle_id = "com.oasis-networks.cli" - -apple_id { - username = "liangzhib@163.com" - password = "@env:AC_PASSWORD" -} - -sign { - application_identity = "Developer ID Application: Oasis Networks, Inc." -} - -dmg{ - output_path= "./dist/lets_macos_arm_darwin_arm64/lets.dmg" - volume_name= "let.sh cli" -} - -zip { - output_path = "./dist/lets_macos_arm_darwin_arm64/lets.zip" -} \ No newline at end of file diff --git a/handler/deploy/detect.go b/handler/deploy/detect.go index e34f55b..7b40210 100644 --- a/handler/deploy/detect.go +++ b/handler/deploy/detect.go @@ -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"