From a41178d5b5454b50728c0566f59ea754b6095d98 Mon Sep 17 00:00:00 2001 From: Yunze Xu Date: Wed, 13 May 2026 11:41:17 +0800 Subject: [PATCH] Fix release workflow and scripts --- .github/workflows/ci-build-release-wheels.yaml | 6 +++--- build-support/stage-release.sh | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-build-release-wheels.yaml b/.github/workflows/ci-build-release-wheels.yaml index fc2bc4e1..88b68aa8 100644 --- a/.github/workflows/ci-build-release-wheels.yaml +++ b/.github/workflows/ci-build-release-wheels.yaml @@ -32,7 +32,7 @@ jobs: linux-wheel: name: Wheel ${{matrix.image.name}} - Py ${{matrix.python.version}} - ${{matrix.cpu.platform}} runs-on: ubuntu-latest - timeout-minutes: 300 + timeout-minutes: 360 strategy: fail-fast: false @@ -95,7 +95,7 @@ jobs: mac-wheels: name: Wheel MacOS Universal2 - Py ${{matrix.py.version}} runs-on: macos-14 - timeout-minutes: 300 + timeout-minutes: 360 strategy: fail-fast: false @@ -125,7 +125,7 @@ jobs: runs-on: windows-2022 env: PULSAR_CPP_DIR: 'C:\\pulsar-cpp' - timeout-minutes: 300 + timeout-minutes: 360 strategy: fail-fast: false diff --git a/build-support/stage-release.sh b/build-support/stage-release.sh index d826938c..08595df8 100755 --- a/build-support/stage-release.sh +++ b/build-support/stage-release.sh @@ -42,9 +42,11 @@ mv $TAG.tar.gz pulsar-client-python-$VERSION.tar.gz # Download the Python wheels URLS=$(curl -L https://api.github.com/repos/apache/pulsar-client-python/actions/runs/$WORKFLOW_ID/artifacts \ - | jq '.artifacts[] .archive_download_url' | sed 's/^"\(.*\)"$/\1/') + | jq -r '.artifacts[] + | select(((.name // "") | contains("dockerbuild")) | not) + | .archive_download_url') for URL in $URLS; do - curl -O -L $URL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" + curl -O -L "$URL" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" unzip -q zip rm -f zip done