File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 11{
22 "integrity" : " **leave this alone**" ,
33 "strip_prefix" : " {REPO}-{VERSION}" ,
4+ "docs_url" : " https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.docs.tar.gz" ,
45 "url" : " https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
56}
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ ARCHIVE="rules_ruby-$TAG.tar.gz"
1313git archive --format=tar --prefix=${PREFIX} / ${TAG} | gzip > $ARCHIVE
1414SHA=$( shasum -a 256 $ARCHIVE | awk ' {print $1}' )
1515
16+ # Add generated API docs to the release, see https://github.com/bazelbuild/bazel-central-registry/issues/5593
17+ docs=" $( mktemp -d) " ; targets=" $( mktemp) "
18+ bazel --output_base=" $docs " query --output=label --output_file=" $targets " ' kind("starlark_doc_extract rule", //rails:all //ruby:all)'
19+ bazel --output_base=" $docs " build --target_pattern_file=" $targets "
20+ tar --create --auto-compress \
21+ --directory " $( bazel --output_base=" $docs " info bazel-bin) " \
22+ --file " $GITHUB_WORKSPACE /${ARCHIVE% .tar.gz} .docs.tar.gz" .
23+
1624# The stdout of this program will be used as the top of the release notes for this release.
1725cat << EOF
1826## Using Bzlmod with Bazel 7-8
Original file line number Diff line number Diff line change @@ -10,3 +10,9 @@ bzl_library(
1010 "//rails/private:rails_test_factory" ,
1111 ],
1212)
13+
14+ starlark_doc_extract (
15+ name = "rails_test_factory.doc_extract" ,
16+ src = "rails_test_factory.bzl" ,
17+ deps = [":rails_test_factory" ],
18+ )
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ bzl_library(
2424 ],
2525)
2626
27+ starlark_doc_extract (
28+ name = "defs.doc_extract" ,
29+ src = "defs.bzl" ,
30+ deps = [":defs" ],
31+ )
32+
2733bzl_library (
2834 name = "deps" ,
2935 srcs = ["deps.bzl" ],
@@ -34,6 +40,12 @@ bzl_library(
3440 ],
3541)
3642
43+ starlark_doc_extract (
44+ name = "deps.doc_extract" ,
45+ src = "deps.bzl" ,
46+ deps = [":deps" ],
47+ )
48+
3749bzl_library (
3850 name = "extensions" ,
3951 srcs = ["extensions.bzl" ],
You can’t perform that action at this time.
0 commit comments