Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"integrity": "**leave this alone**",
"strip_prefix": "{REPO}-{VERSION}",
"docs_url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.docs.tar.gz",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
8 changes: 8 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ ARCHIVE="rules_ruby-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

# Add generated API docs to the release, see https://github.com/bazelbuild/bazel-central-registry/issues/5593
docs="$(mktemp -d)"; targets="$(mktemp)"
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //rails:all //ruby:all)'
bazel --output_base="$docs" build --target_pattern_file="$targets"
tar --create --auto-compress \
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .

# The stdout of this program will be used as the top of the release notes for this release.
cat << EOF
## Using Bzlmod with Bazel 7-8
Expand Down
6 changes: 6 additions & 0 deletions rails/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ bzl_library(
"//rails/private:rails_test_factory",
],
)

starlark_doc_extract(
name = "rails_test_factory.doc_extract",
src = "rails_test_factory.bzl",
deps = [":rails_test_factory"],
)
12 changes: 12 additions & 0 deletions ruby/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ bzl_library(
],
)

starlark_doc_extract(
name = "defs.doc_extract",
src = "defs.bzl",
deps = [":defs"],
)

bzl_library(
name = "deps",
srcs = ["deps.bzl"],
Expand All @@ -34,6 +40,12 @@ bzl_library(
],
)

starlark_doc_extract(
name = "deps.doc_extract",
src = "deps.bzl",
deps = [":deps"],
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
Expand Down
Loading