Skip to content

Commit d5f5970

Browse files
feat: add brew tap for oasis-cli
feat: add oasis-cli brew cask/tap fix: latest goreleaser syntax fix: create prs for brew casks
1 parent ae401ce commit d5f5970

2 files changed

Lines changed: 30 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
container:
15-
image: ghcr.io/goreleaser/goreleaser-cross:v1.22.3
15+
image: ghcr.io/goreleaser/goreleaser-cross:v1.24.5
1616
options: --user 1001
1717
steps:
1818
- name: Checkout
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
install-only: true
3030
distribution: goreleaser
31-
version: 1.16.1
31+
version: 2.11.0
3232
- name: Build and publish the next release
3333
run: |
3434
make release-build

.goreleaser.yaml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
project_name: Oasis CLI
23

34
before:
@@ -14,6 +15,7 @@ universal_binaries:
1415

1516
env:
1617
- CGO_ENABLED=1
18+
- GOLDFLAGS_VERSION=-X github.com/oasisprotocol/cli/version.Software={{ .Version }}
1719

1820
builds:
1921
- &build-common
@@ -70,32 +72,33 @@ builds:
7072
- amd64
7173

7274
archives:
73-
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
75+
- name_template: '{{replace .ProjectName " " "_" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}'
7476
wrap_in_directory: true
75-
builds:
77+
ids:
7678
- oasis-linux-amd64
7779
- oasis-linux-arm64
7880
- oasis-darwin-universal
7981
- oasis-windows-amd64
8082
format_overrides:
8183
- goos: windows
82-
format: zip
84+
formats:
85+
- zip
8386

8487
checksum:
8588
name_template: SHA256SUMS-{{.Version}}.txt
8689
algorithm: sha256
8790

8891
snapshot:
89-
name_template: "{{ incpatch .Version }}-next"
92+
version_template: "{{ incpatch .Version }}-next"
9093

9194
changelog:
9295
sort: asc
9396
use: github
9497
filters:
9598
exclude:
96-
- Merge pull request
97-
- Merge remote-tracking branch
98-
- Merge branch
99+
- Merge pull request
100+
- Merge remote-tracking branch
101+
- Merge branch
99102
groups:
100103
- title: Breaking changes
101104
regexp: "^.*breaks[(\\w)]*:+.*$"
@@ -121,3 +124,21 @@ release:
121124

122125
footer: |
123126
**Full Changelog**: https://github.com/oasisprotocol/cli/compare/{{ .PreviousTag }}...{{ .Tag }}
127+
128+
homebrew_casks:
129+
- name: oasis-cli
130+
binary: oasis
131+
directory: Casks
132+
homepage: "https://github.com/oasisprotocol/cli"
133+
description: "Command‑line interface for the Oasis Network"
134+
commit_author:
135+
name: github-actions[bot]
136+
email: github-actions[bot]@users.noreply.github.com
137+
commit_msg_template: "chore(brew): update {{ .ProjectName }} to {{ .Tag }}"
138+
repository:
139+
owner: oasisprotocol
140+
name: cli
141+
branch: brew-oasis-{{ .Tag }}
142+
pull_request:
143+
enabled: true
144+
draft: false

0 commit comments

Comments
 (0)