Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fully automate homebrew publishing #5

Open
samifouad opened this issue Aug 4, 2024 · 2 comments
Open

fully automate homebrew publishing #5

samifouad opened this issue Aug 4, 2024 · 2 comments
Assignees
Labels
iteration progress towards v1.0

Comments

@samifouad
Copy link
Owner

samifouad commented Aug 4, 2024

right now it takes manually updating the separate repo for the homebrew tap

  • it needs to be automated via gh actions
  • build artifacts uploaded to gh
  • sha256 calculated
  • a PR sent over to the homebrew tap repo

the tap needs to also support macos-x64, macos-arm64 & linux-x64. right now it is linux-x64 only

@samifouad samifouad added the enhancement New feature or request label Aug 4, 2024
@samifouad samifouad self-assigned this Aug 4, 2024
@samifouad
Copy link
Owner Author

decided to merge the gh release upload step with the draft of the homebrew publishing step

it's a work in progress but this seems to be the way to go

  • artifacts get uploaded to gh release w/ tag
  • includes sha256 of each file

then in the same run while everything is available & calculated, the homebrew repo is cloned with credentials & the linux-x64, darwin-x64 and darwin-arm64 binaries and hashes and prepped to send to the homebrew repo as a PR

to generate the updated ruby file, a simple TypeScript file is run that spits out a new ruby file in the right location

a similar process may be needed for scoop

@samifouad
Copy link
Owner Author

homework publishing is now fully automated. a commit is sent to the right repo from gh actions. besides small fix that needs to be done in #11, that's taken care of

just need to do scoop now

@samifouad samifouad added iteration progress towards v1.0 and removed enhancement New feature or request labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iteration progress towards v1.0
Projects
None yet
Development

No branches or pull requests

1 participant