Skip to content

Commit 47ee065

Browse files
committed
Fix release workflow timing: remove premature asset waiting from build job
- Remove 'Wait for GitHub to register release uploads' step from build job - Let verify-assets job handle all waiting for complete asset upload - Ensures verification only runs after all assets are fully uploaded
1 parent 0ffc0b9 commit 47ee065

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,33 +96,6 @@ jobs:
9696
run: pnpm run publish
9797
shell: bash
9898

99-
- name: Wait for GitHub to register release uploads
100-
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
run: |
103-
set -e
104-
VERSION=$(node -e "console.log(require('./package.json').version)")
105-
TAG="v${VERSION}"
106-
attempts=0
107-
max=9
108-
sleep_interval=10
109-
while [ $attempts -lt $max ]; do
110-
resp=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/releases/tags/${TAG}" || true)
111-
if echo "$resp" | grep -q "\"message\": \"Not Found\""; then
112-
echo "Release ${TAG} not found yet."
113-
else
114-
echo "$resp" | jq -r '. | {name: .name, tag_name: .tag_name, draft: .draft, published_at: .published_at, html_url: .html_url, assets_count: .assets | length}'
115-
echo "$resp" | jq -r '.assets[] | "\(.name) | \(.size) | \(.browser_download_url)"' || true
116-
assets_count=$(echo "$resp" | jq '.assets | length')
117-
if [ "$assets_count" -gt 0 ]; then
118-
break
119-
fi
120-
fi
121-
attempts=$((attempts+1))
122-
sleep $sleep_interval
123-
done
124-
shell: bash
125-
12699
verify-assets:
127100
name: Verify Release Assets
128101
needs: build

0 commit comments

Comments
 (0)