2019-08-23 18:37:16 +00:00
|
|
|
load("@bazel_skylib//:version.bzl", "version")
|
|
|
|
load("@rules_pkg//:pkg.bzl", "pkg_tar")
|
|
|
|
load("@rules_pkg//releasing:defs.bzl", "print_rel_notes")
|
|
|
|
|
2020-02-18 18:00:50 +00:00
|
|
|
package(
|
|
|
|
default_visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
2019-08-23 18:37:16 +00:00
|
|
|
# Build the artifact to put on the github release page.
|
|
|
|
pkg_tar(
|
|
|
|
name = "bazel-skylib-%s" % version,
|
2022-03-10 12:41:11 +00:00
|
|
|
srcs = ["//:distribution"],
|
2019-08-23 18:37:16 +00:00
|
|
|
extension = "tar.gz",
|
2022-03-10 12:41:11 +00:00
|
|
|
mode = "0644",
|
2019-08-23 18:37:16 +00:00
|
|
|
# Make it owned by root so it does not have the uid of the CI robot.
|
|
|
|
owner = "0.0",
|
|
|
|
strip_prefix = ".",
|
|
|
|
)
|
|
|
|
|
|
|
|
print_rel_notes(
|
|
|
|
name = "relnotes",
|
|
|
|
outs = ["relnotes.txt"],
|
2019-10-09 16:43:21 +00:00
|
|
|
deps_method = "bazel_skylib_workspace",
|
2019-08-23 18:37:16 +00:00
|
|
|
repo = "bazel-skylib",
|
2019-10-07 21:48:55 +00:00
|
|
|
setup_file = ":workspace.bzl",
|
2019-10-09 16:43:21 +00:00
|
|
|
version = version,
|
2019-08-23 18:37:16 +00:00
|
|
|
)
|