Skip to content

Commit a9d3b4b

Browse files
committed
chore(ci): fix goreleaser, labeler
Signed-off-by: Tobias Cudnik <[email protected]> ci(goreleaser): fix var names Signed-off-by: Tobias Cudnik <[email protected]>
1 parent 5151f73 commit a9d3b4b

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
🗿 instill-base:
1+
instill base:
22
- "**"

.github/workflows/releases.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
INSTILL_OAUTH_CLIENT_ID: ${{ secrets.oauth2ClientId }}
3333
INSTILL_OAUTH_CLIENT_SECRET: ${{ secrets.oauth2ClientSecret }}
3434
# config
35-
INSTILL_OAUTH_ISSUER: ${{ vars.oauth2Issuer }}
36-
INSTILL_OAUTH_HOSTNAME: ${{ vars.oauth2Hostname }}
37-
INSTILL_OAUTH_AUDIENCE: ${{ vars.oauth2Audience }}
38-
INSTILL_OAUTH_CALLBACK_HOST: ${{ vars.oauth2CallbackHost }}
39-
INSTILL_OAUTH_CALLBACK_PORT: ${{ vars.oauth2CallbackPort }}
35+
INSTILL_OAUTH_ISSUER: ${{ vars.INSTILL_OAUTH_ISSUER }}
36+
INSTILL_OAUTH_HOSTNAME: ${{ vars.INSTILL_OAUTH_HOSTNAME }}
37+
INSTILL_OAUTH_AUDIENCE: ${{ vars.INSTILL_OAUTH_AUDIENCE }}
38+
INSTILL_OAUTH_CALLBACK_HOST: ${{ vars.INSTILL_OAUTH_CALLBACK_HOST }}
39+
INSTILL_OAUTH_CALLBACK_PORT: ${{ vars.INSTILL_OAUTH_CALLBACK_PORT }}

.goreleaser.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,19 @@ builds:
4646
goarch: [amd64]
4747

4848
archives:
49-
- id: nix
50-
builds: [macos, linux]
51-
<<: &archive_defaults
52-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
53-
wrap_in_directory: true
54-
replacements:
55-
darwin: macOS
56-
format: tar.gz
57-
files:
58-
- LICENSE
59-
- id: windows
60-
builds: [windows]
61-
<<: *archive_defaults
62-
wrap_in_directory: false
63-
format: zip
64-
files:
65-
- LICENSE
49+
- format: tar.gz
50+
# this name template makes the OS and Arch compatible with the results of uname.
51+
name_template: >-
52+
{{ .ProjectName }}_
53+
{{- title .Os }}_
54+
{{- if eq .Arch "amd64" }}x86_64
55+
{{- else if eq .Arch "386" }}i386
56+
{{- else }}{{ .Arch }}{{ end }}
57+
{{- if .Arm }}v{{ .Arm }}{{ end }}
58+
# use zip for windows archives
59+
format_overrides:
60+
- goos: windows
61+
format: zip
6662

6763
checksum:
6864
name_template: 'checksums_v{{ .Version }}_sha256.txt'

0 commit comments

Comments
 (0)