aboutsummaryrefslogtreecommitdiff
path: root/distribution/BUILD
blob: ba903aa68e372769fd90ee15deb66172111be818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
load("@bazel_skylib//:version.bzl", "version")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//releasing:defs.bzl", "print_rel_notes")

package(
    default_visibility = ["//visibility:private"],
)

pkg_tar(
    name = "srcs",
    srcs = ["//:distribution"],
    mode = "0444",
    # Make it owned by root so it does not have the uid of the CI robot.
    owner = "0.0",
    package_dir = "",
    strip_prefix = ".",
)

pkg_tar(
    name = "bins",
    srcs = ["//:bins"],
    mode = "0555",
    # Make it owned by root so it does not have the uid of the CI robot.
    owner = "0.0",
    package_dir = "",
    strip_prefix = ".",
)

# Build the artifact to put on the github release page.
pkg_tar(
    name = "bazel-skylib-%s" % version,
    extension = "tar.gz",
    # Make it owned by root so it does not have the uid of the CI robot.
    owner = "0.0",
    strip_prefix = ".",
    deps = [
        ":bins.tar",
        ":srcs.tar",
    ],
)

print_rel_notes(
    name = "relnotes",
    outs = ["relnotes.txt"],
    deps_method = "bazel_skylib_workspace",
    repo = "bazel-skylib",
    setup_file = ":workspace.bzl",
    version = version,
)