Skip to content

Commit 678a1c7

Browse files
authored
chore: fix the goreleaser action and name template (tensorchord#1675)
Signed-off-by: Keming <[email protected]>
1 parent 40ddcc3 commit 678a1c7

File tree

2 files changed

+14
-34
lines changed

2 files changed

+14
-34
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
username: ${{ secrets.DOCKERIO_USERNAME }}
3030
password: ${{ secrets.DOCKERIO_TOKEN }}
3131
- name: Run GoReleaser
32-
uses: goreleaser/goreleaser-action@v3
32+
uses: goreleaser/goreleaser-action@v4
3333
with:
3434
distribution: goreleaser
3535
version: latest
36-
args: release --rm-dist
36+
args: release --clean
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
- name: upload gobin

.goreleaser.yaml

+12-32
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ archives:
4141
format: binary
4242
builds:
4343
- envd
44-
replacements:
45-
darwin: Darwin
46-
linux: Linux
47-
windows: Windows
48-
386: i386
49-
amd64: x86_64
44+
name_template: >-
45+
{{ .ProjectName }}_
46+
{{- title .Os }}_
47+
{{- if eq .Arch "amd64" }}x86_64
48+
{{- else if eq .Arch "386" }}i386
49+
{{- else }}{{ .Arch }}{{ end }}
5050
- id: envd-sshd
5151
format: binary
5252
builds:
5353
- envd-sshd
54-
replacements:
55-
darwin: Darwin
56-
linux: Linux
57-
windows: Windows
58-
386: i386
59-
amd64: x86_64
54+
name_template: >-
55+
{{ .ProjectName }}_
56+
{{- title .Os }}_
57+
{{- if eq .Arch "amd64" }}x86_64
58+
{{- else if eq .Arch "386" }}i386
59+
{{- else }}{{ .Arch }}{{ end }}
6060
checksum:
6161
name_template: 'checksums.txt'
6262
snapshot:
@@ -123,23 +123,3 @@ docker_manifests:
123123
image_templates:
124124
- tensorchord/envd-from-scratch:v{{ .Version }}-amd64
125125
- tensorchord/envd-from-scratch:v{{ .Version }}-arm64v8
126-
# See https://github.com/tensorchord/envd/issues/908
127-
# brews:
128-
# - name: envd
129-
# ids:
130-
# - envd
131-
# tap:
132-
# owner: tensorchord
133-
# name: homebrew-tap
134-
# commit_author:
135-
# name: TensorChord
136-
137-
# folder: Formula
138-
# homepage: https://envd.tensorchord.ai/
139-
# description: Development environment for data science and AI/ML teams
140-
# license: Apache-2.0
141-
# skip_upload: auto
142-
# caveats: |
143-
# Please run `envd bootstrap` first to bootstrap
144-
# test: |
145-
# system "#{bin}/envd version"

0 commit comments

Comments
 (0)