Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
container:
image: ghcr.io/goreleaser/goreleaser-cross:v1.22.3
image: ghcr.io/goreleaser/goreleaser-cross:v1.24.5
options: --user 1001
steps:
- name: Checkout
Expand All @@ -28,7 +28,7 @@ jobs:
with:
install-only: true
distribution: goreleaser
version: 1.16.1
version: 2.11.0
- name: Build and publish the next release
run: |
make release-build
Expand Down
35 changes: 28 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: Oasis CLI

before:
Expand All @@ -14,6 +15,7 @@ universal_binaries:

env:
- CGO_ENABLED=1
- GOLDFLAGS_VERSION=-X github.com/oasisprotocol/cli/version.Software={{ .Version }}

builds:
- &build-common
Expand Down Expand Up @@ -70,32 +72,33 @@ builds:
- amd64

archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
- name_template: '{{replace .ProjectName " " "_" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}'
wrap_in_directory: true
builds:
ids:
- oasis-linux-amd64
- oasis-linux-arm64
- oasis-darwin-universal
- oasis-windows-amd64
format_overrides:
- goos: windows
format: zip
formats:
- zip

checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256

snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
use: github
filters:
exclude:
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: Breaking changes
regexp: "^.*breaks[(\\w)]*:+.*$"
Expand All @@ -121,3 +124,21 @@ release:

footer: |
**Full Changelog**: https://github.com/oasisprotocol/cli/compare/{{ .PreviousTag }}...{{ .Tag }}

homebrew_casks:
- name: oasis-cli
binary: oasis
directory: Casks
homepage: "https://github.com/oasisprotocol/cli"
description: "Command‑line interface for the Oasis Network"
commit_author:
name: github-actions[bot]
email: github-actions[bot]@users.noreply.github.com
commit_msg_template: "chore(brew): update {{ .ProjectName }} to {{ .Tag }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the homebrew_casks workflow. But making a commit directly to the main branch will not work due to the security policies. Why would you need to commit to the cli repo?

Copy link
Contributor Author

@uniyalabhishek uniyalabhishek Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created a fix to open PRs instead trying to commit directly. more info on goreleaser homebrew_casks https://goreleaser.com/customization/homebrew_casks/

we need to commit to the cli repo (now with a PR) to let goreleaser auto‑add the updated Casks/oasis-cli.rb with each tag so brew users can brew upgrade --cask oasis-cli, without us maintaining a separate repo/tap

Copy link
Member

@matevz matevz Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this still go under the cli repo but to a separate branch? Similarly to how gh-pages branch is commonly used for the github pages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after searching a bunch, this doesn’t looks to be possible. Homebrew only clones the default branch ( origin/HEAD ) of a tap

repository:
owner: oasisprotocol
name: cli
branch: brew-oasis-{{ .Tag }}
pull_request:
enabled: true
draft: false
Loading