Skip to content

Conversation

@uniyalabhishek
Copy link
Contributor

@uniyalabhishek uniyalabhishek commented Jul 18, 2025

Resolves #326

this PR adds GoReleaser GitHub Action that builds and publishes tagged Oasis‑CLI releases. creates a Homebrew cask (Casks/oasis-cli.rb) in this repo, turning it into a tap.
the workflow auto‑updates the cask with each release and hosts macOS‑universal binaries. Mac devs can now
brew install --cask oasisprotocol/cli/oasis-cli

(and later brew upgrade --cask oasis-cli to update).

@netlify
Copy link

netlify bot commented Jul 18, 2025

Deploy Preview for oasisprotocol-cli ready!

Name Link
🔨 Latest commit d5f5970
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/687f93ed94e99e00082e4dfd
😎 Deploy Preview https://deploy-preview-546--oasisprotocol-cli.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@uniyalabhishek uniyalabhishek changed the title feat (wip): add brew tap for oasis-cli feat: add brew tap for oasis-cli Jul 21, 2025
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/326-add-oasis-cli-to-brew-tap branch 2 times, most recently from 6ec59b2 to 82f48ec Compare July 22, 2025 04:48
@uniyalabhishek uniyalabhishek marked this pull request as ready for review July 22, 2025 04:48
@uniyalabhishek uniyalabhishek requested review from kostko and matevz July 22, 2025 04:48
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

feat: add oasis-cli brew cask/tap

fix: latest goreleaser syntax

fix: create prs for brew casks
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/326-add-oasis-cli-to-brew-tap branch from 3fc091f to d5f5970 Compare July 22, 2025 13:36
@uniyalabhishek
Copy link
Contributor Author

we have the cli in official homebrew formula now! Homebrew/homebrew-core#233862 closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: Add Oasis CLI to brew

3 participants