File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed
Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1212 steps :
1313 - uses : actions/checkout@v4
1414 - uses : bazelbuild/setup-bazelisk@v3
15+ with :
16+ bazelisk-cache : true
17+ repository-cache : true
1518 - name : Mount bazel cache
1619 uses : actions/cache@v4
1720 with :
Original file line number Diff line number Diff line change 11load ("@aspect_bazel_lib//lib:expand_template.bzl" , "expand_template_rule" )
2- load ("@bazel_skylib//rules :run_binary.bzl" , "run_binary" )
2+ load ("@aspect_bazel_lib//lib :run_binary.bzl" , "run_binary" )
33load ("@rules_pkg//pkg:mappings.bzl" , "pkg_files" )
44load ("@rules_pkg//pkg/private/zip:zip.bzl" , "pkg_zip" )
55load ("@rules_shell//shell:sh_binary.bzl" , "sh_binary" )
@@ -157,16 +157,19 @@ def _sign(
157157 out = "{}.asc" .format (name )
158158 name = "{}_asc" .format (name )
159159
160- native . genrule (
160+ run_binary (
161161 name = name ,
162+ tool = "//rules/publishing:pgp_signer" ,
162163 srcs = [artifact ],
163164 outs = [out ],
164- cmd = """
165- MAVEN_SIGNING_TOSIGN=$(location {}) \
166- MAVEN_SIGNING_OUTPUT_PATH=$(location {}) \
167- $(location //rules/publishing:pgp_signer)""" .format (artifact , out ),
168- tools = ["//rules/publishing:pgp_signer" ],
169- tags = ["manual" ],
165+ env = {
166+ "MAVEN_SIGNING_TOSIGN" : "$(location {})" .format (artifact ),
167+ "MAVEN_SIGNING_OUTPUT_PATH" : "$(location {})" .format (out ),
168+ },
169+ use_default_shell_env = True ,
170+ tags = [
171+ "manual" ,
172+ ],
170173 )
171174
172175def _calculate_hashes (
Original file line number Diff line number Diff line change 88SONATYPE_TOKEN=$( {ECHO} -n $SONATYPE_USERNAME :$SONATYPE_PASSWORD | {BASE64} -w0)
99
1010{CURL} \
11+ --fail-with-body \
1112 --request POST \
1213 --silent \
1314 --header ' Authorization: Bearer ${SONATYPE_TOKEN}' \
You can’t perform that action at this time.
0 commit comments