Commit c891bbc 1 parent 2dfacb4 commit c891bbc Copy full SHA for c891bbc
File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 20
20
# Bazelisk will download bazel to here
21
21
XDG_CACHE_HOME : ~/.cache/bazel-repo
22
22
run : bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //...
23
+ - name : Rename release artifact with version
24
+ run : cp $(ls bazel-out/*/bin/*.tar.gz | tail -1) "bazel_lib-$(git describe --tags | sed 's/^v//').tar.gz"
25
+ # TODO: move this into bazel to produce the file with expand_template rule when it has stamping
26
+ - name : Prepare workspace snippet
27
+ run : |
28
+ echo -e "WORKSPACE snippet:\n\n\`\`\`starlark\nhttp_archive(\n name = \"aspect_bazel_lib\"," > release_notes.txt
29
+ echo " sha256 = \"$(shasum -a 256 *.tar.gz | awk '{print $1}')\"," >> release_notes.txt
30
+ echo -e " url = \"https://github.com/aspect-build/bazel-lib/releases/download/$(git describe --tags)/$(ls *.tar.gz)\",\n)\n\`\`\`" >> release_notes.txt
23
31
- name : Release
24
32
uses : softprops/action-gh-release@v1
25
33
with :
26
34
prerelease : true
27
- files : |
28
- bazel-out/*/bin/* .tar.gz
35
+ body_path : release_notes.txt
36
+ files : " * .tar.gz"
Original file line number Diff line number Diff line change 1
1
load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
2
2
load ("@rules_pkg//:pkg.bzl" , "pkg_tar" )
3
- load (":version.bzl" , "VERSION" )
4
3
load ("@bazel_gazelle//:def.bzl" , "gazelle" , "gazelle_binary" )
5
4
6
5
gazelle_binary (
@@ -15,7 +14,7 @@ gazelle(
15
14
16
15
# This declares the release artifact users
17
16
pkg_tar (
18
- name = "bazel_lib-" + VERSION ,
17
+ name = "bazel_lib" ,
19
18
srcs = [
20
19
"README.md" ,
21
20
"version.bzl" ,
@@ -38,9 +37,3 @@ bzl_library(
38
37
"@bazel_tools//tools/build_defs/repo:utils.bzl" ,
39
38
],
40
39
)
41
-
42
- bzl_library (
43
- name = "version" ,
44
- srcs = ["version.bzl" ],
45
- visibility = ["//visibility:public" ],
46
- )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments