Serialize release asset uploads to avoid secondary rate limits (#46303)

Upgrade `softprops/action-gh-release` from `v2.6.1` to `v3.0.3` and enable
`preserve_order` in the Rust release workflow to upload assets serially,
following GitHub's recommendation to avoid concurrent REST API requests.

GitOrigin-RevId: d1fbbbb01e191967be303040cfa2949146a2292d
This commit is contained in:
Ian MacLeod
2026-09-17 21:03:19 +00:00
committed by copyberry
parent ea218f5cd8
commit 7a3c5a83e4

View File

@@ -1678,13 +1678,18 @@ jobs:
cp scripts/install/install.ps1 dist/install.ps1
- name: Create GitHub Release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
with:
name: ${{ steps.release_name.outputs.name }}
tag_name: ${{ github.ref_name }}
body_path: ${{ steps.release_notes.outputs.path }}
files: dist/**
overwrite_files: true
# Release asset uploads follow normal REST API behavior. GitHub recommends
# serial API requests to avoid secondary rate limits:
# https://docs.github.com/en/rest/releases/assets#upload-a-release-asset
# https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api#avoid-concurrent-requests
preserve_order: true
make_latest: ${{ steps.release_name.outputs.make_latest }}
# Mark as prerelease only when the version has a suffix after x.y.z
# (e.g. -alpha, -beta). Otherwise publish a normal release.