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

Add BCR configurations for publishing releases to the central registry #1038

Conversation

Bencodes
Copy link
Collaborator

@Bencodes Bencodes commented Oct 2, 2023

Adding BCR configurations so that we can start deploying future releases to the Bazel central registry.

This pull request pulls in the bazel-contrib Github actions for creating Github releases and publishing to the central registry.

@restingbull
Copy link
Collaborator

Added code owners fixes to bring it inline with the maintainers list.

@Bencodes
Copy link
Collaborator Author

Added code owners fixes to bring it inline with the maintainers list.

Thanks!

platform: ${{ platform }}
build_flags:
- "--enable_bzlmod=false"
build_targets:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth noting that we don't actually check tests into the release binary of rules_kotlin so there isn't much to run on the Bazel central registry presubmit side.

tag: ${{ github.ref }}
overwrite: true
release:
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v4
Copy link
Collaborator Author

@Bencodes Bencodes Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes howe we cut releases in rules_kotlin. The way to create releases is to now push a tag like v4.0.0

# This file contains Bazel settings to apply on CI only.
# It is referenced with a --bazelrc option in the call to bazel in ci.yaml
common --curses=no
common --enable_bzlmod
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config is only used by bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v4

@Bencodes Bencodes force-pushed the add-bcr-configurations-for-publishing-releases-to-the-central-registry branch from 2fb5255 to 8273c69 Compare October 12, 2023 23:31
@Bencodes
Copy link
Collaborator Author

Tagged a release from this branch to see if everything works bazelbuild/bazel-central-registry#999

@Bencodes Bencodes force-pushed the add-bcr-configurations-for-publishing-releases-to-the-central-registry branch from dd7c396 to 8ac8b17 Compare October 19, 2023 21:36
@Bencodes Bencodes merged commit 11f55e8 into master Oct 20, 2023
3 checks passed
@Bencodes Bencodes deleted the add-bcr-configurations-for-publishing-releases-to-the-central-registry branch October 20, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants