File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1111 needs : [tests]
1212 steps :
1313 - uses : actions/checkout@v4
14+ with :
15+ fetch-tags : true
1416 - uses : bazelbuild/setup-bazelisk@v3
1517 with :
1618 bazelisk-cache : true
2123 path : |
2224 ~/.cache/bazel
2325 key : ubuntu-latest-bazel-ci-cache
26+ - name : Show version to be published
27+ run : |
28+ echo "Git tag: $(git describe --tags --exact-match HEAD 2>/dev/null || echo 'No exact tag found')"
29+ bazel query @bazel_bsp_versions//:versions.bzl --output=build 2>/dev/null || true
30+ cat $(bazel info output_base)/external/bazel_bsp_versions/versions.bzl 2>/dev/null || echo "Could not read versions.bzl"
2431 - name : Publish package
2532 run : |
2633 bazel run \
Original file line number Diff line number Diff line change 77
88SONATYPE_TOKEN=$( {ECHO} -n $SONATYPE_USERNAME :$SONATYPE_PASSWORD | {BASE64} -w0)
99
10+ echo " Uploading bundle to Sonatype Central..."
1011{CURL} \
1112 --fail-with-body \
1213 --request POST \
13- --silent \
14+ --show-error \
1415 --header " Authorization: Bearer ${SONATYPE_TOKEN} " \
1516 --form bundle=@{BUNDLE} \
1617 https://central.sonatype.com/api/v1/publisher/upload? publishingType=AUTOMATIC
18+ echo " "
19+ echo " Upload completed successfully."
You can’t perform that action at this time.
0 commit comments