1load("@bazel_skylib//:version.bzl", "version") 2load("@rules_pkg//:pkg.bzl", "pkg_tar") 3load("@rules_pkg//releasing:defs.bzl", "print_rel_notes") 4 5package( 6 default_visibility = ["//visibility:private"], 7) 8 9pkg_tar( 10 name = "srcs", 11 srcs = ["//:distribution"], 12 mode = "0444", 13 # Make it owned by root so it does not have the uid of the CI robot. 14 owner = "0.0", 15 package_dir = "", 16 strip_prefix = ".", 17) 18 19pkg_tar( 20 name = "bins", 21 srcs = ["//:bins"], 22 mode = "0555", 23 # Make it owned by root so it does not have the uid of the CI robot. 24 owner = "0.0", 25 package_dir = "", 26 strip_prefix = ".", 27) 28 29# Build the artifact to put on the github release page. 30pkg_tar( 31 name = "bazel-skylib-%s" % version, 32 extension = "tar.gz", 33 # Make it owned by root so it does not have the uid of the CI robot. 34 owner = "0.0", 35 strip_prefix = ".", 36 deps = [ 37 ":bins.tar", 38 ":srcs.tar", 39 ], 40) 41 42print_rel_notes( 43 name = "relnotes", 44 outs = ["relnotes.txt"], 45 deps_method = "bazel_skylib_workspace", 46 repo = "bazel-skylib", 47 setup_file = ":workspace.bzl", 48 version = version, 49) 50