Skip to content

Commit 062c9b7

Browse files
committed
update go releaser to use formats instead of format and gh wf to stop using deprecated stuff.
1 parent 15163e4 commit 062c9b7

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ jobs:
3535

3636
- name: Get build date
3737
id: date
38-
run: echo "::set-output name=date::$(date '+%F-%T')"
38+
run: echo "date=$(date '+%F-%T')" >> $GITHUB_OUTPUT
3939

4040
- name: Get build unix timestamp
4141
id: timestamp
42-
run: echo "::set-output name=timestamp::$(date '+%s')"
42+
run: echo "timestamp=$(date '+%s')" >> $GITHUB_OUTPUT
4343

4444
- name: Get git branch
4545
id: branch
46-
run: echo "::set-output name=branch::$(git rev-parse --abbrev-ref HEAD)"
46+
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT
4747

4848
- name: Get build platform
4949
id: platform
50-
run: echo "::set-output name=platform::$(go version | cut -d ' ' -f 4)"
50+
run: echo "platform=$(go version | cut -d ' ' -f 4)" >> $GITHUB_OUTPUT
5151

5252
- name: Get Go version
5353
id: go
54-
run: echo "::set-output name=go::$(go version | cut -d ' ' -f 3)"
54+
run: echo "go=$(go version | cut -d ' ' -f 3)" >> $GITHUB_OUTPUT
5555

5656
- name: Run GoReleaser (release)
5757
if: inputs.publish

.goreleaser.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@ archives:
1313
- <<: &archive_defaults
1414
name_template: "temporal_cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
1515
id: nix
16-
builds:
16+
ids:
1717
- nix
18-
format: tar.gz
18+
formats:
19+
- tar.gz
1920
files:
2021
- LICENSE
2122

2223
- <<: *archive_defaults
2324
id: windows-zip
24-
builds:
25+
ids:
2526
- windows
26-
format: zip
27+
formats:
28+
- zip
2729
files:
2830
- LICENSE
2931

3032
# used by SDKs as zip cannot be used by rust https://github.com/zip-rs/zip/issues/108
3133
- <<: *archive_defaults
3234
id: windows-targz
33-
builds:
35+
ids:
3436
- windows
3537
files:
3638
- LICENSE

0 commit comments

Comments
 (0)