tweag / rules_sh

Shell rules for Bazel
Apache License 2.0
42 stars 3 forks source link

Adopt Publish to BCR Github App #36

Closed tshaynik closed 1 year ago

tshaynik commented 1 year ago

Is your feature request related to a problem? Please describe. At the moment, it is necessary to manually make a pull request to the Bazel Central Repository GitHub repo to add a new release to the BCR. It would be nice to automate this process, so creating a release in this repo will automatically publish to the BCR.

Describe the solution you'd like

Adopt the "Publish to BCR" Github App to automate the process of publishing a release to the BCR. https://github.com/bazel-contrib/publish-to-bcr

Describe alternatives you've considered

Additional context

tshaynik commented 1 year ago

I made a Tweag fork of the BCR and made a request to add the Publish to BCR App to rules_sh.

aherrmann commented 1 year ago

@tshaynik Thank you!

I made a Tweag fork of the BCR

Could you write here why the fork is needed for posterity?

and made a request to add the Publish to BCR App to rules_sh.

Thanks! According to the settings the app is installed on this repository.

tshaynik commented 1 year ago
Could you write here why the fork is needed for posterity?

@aherrmann With the Publish to BCR app installed, a tag on this repository will automatically commit the new version to our fork of the BCR repo and open a PR from there to the main BCR repo.

The last step is to add template files. https://github.com/bazel-contrib/publish-to-bcr/tree/main/templates

I'll aim to make a PR for that today.