samifouad / gild-cli

infrastructure as code
https://gild.gg
0 stars 0 forks source link

fully automate homebrew publishing #5

Open samifouad opened 1 month ago

samifouad commented 1 month ago

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

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

samifouad commented 1 month ago

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

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 commented 1 month ago

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