Skip to content

Commit da0d001

Browse files
committed
chore: Try to debug publishing
1 parent a5245dd commit da0d001

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
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
@@ -21,6 +23,11 @@ jobs:
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 \

rules/publishing/upload.sh.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ fi
77

88
SONATYPE_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."

0 commit comments

Comments
 (0)