cargo-dist
cargo-dist copied to clipboard
publish-homebrew-formula step in github actions skipped
Dear cargo dist team,
I have a rust project that uses cargo dist to build a homebrew binary and publish it in an external homebrew tap I configured in a different repo. For some reason this step is skipped and I don't know since I can't see any logs explaining the reason. I followed the instructions here but I am not successful.
This is the github pipeline https://github.com/eth-cscs/manta/actions/runs/13903525484/job/38902004021
Also, I am not sure why the github action has these envs https://github.com/eth-cscs/manta/blob/1.5/.github/workflows/release.yml#L293-L294 and not the ones for my user?
any idea of what am I doing wrong?
kind regards
I found the issue here https://github.com/eth-cscs/manta/actions/runs/13902912305/workflow#L295
apparently this if statement will skip the publish-homebrew-formula on pre-releases like beta versions.
Would it be possible to make this optional? I think been able to store multiple versions of the installers would be beneficial because it would allow clients to test new features in dev releases and/or rollback to a previous release due to bugs.
This is optional! You can opt into publishing prereleases using the publish-prereleases setting. You can read about the rationale here.