fix(release): Replace all assets with chinese mirrors #11323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
This pull request makes updates to the
.github/scripts/on-release.sh
script to improve consistency in URL handling and correct an issue in the upload logic for Chinese-specific pages. These changes ensure proper substitution of URLs and accurate references during the upload process.Keeping it as draft until assets like this are available:
https://dl.espressif.cn/github_assets/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-gnu12/aarch64-linux-gnu.mklittlefs-c41e51a.200706.tar.gz
URL handling improvements:
sed
command to simplify and generalize the substitution ofgithub.com
URLs withdl.espressif.cn/github_assets
by removing the hardcodedespressif
path segment. This change applies to both development and release package JSON files. (.github/scripts/on-release.shL345-R350)Upload logic corrections:
git_safe_upload_to_pages
calls for Chinese-specific pages ($PACKAGE_JSON_DEV_CN
and$PACKAGE_JSON_REL_CN
) to use the correct file references, ensuring that the appropriate content is uploaded. (.github/scripts/on-release.shL459-R466)