[SPARK-35514][INFRA] Automatically update version index of DocSearch via release-tag.sh
### What changes were proposed in this pull request? Automatically update version index of DocSearch via release-tag.sh for releasing new documentation site, instead of the current manual update. ### Why are the changes needed? Simplify the release process. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manually run the following command and check the diff ``` R_NEXT_VERSION=3.2.0 sed -i".tmp8" "s/'facetFilters':.*$/'facetFilters': [\"version:$R_NEXT_VERSION\"]/g" docs/_config.yml ``` Closes #32662 from gengliangwang/updateDocsearchInRelease. Authored-by: Gengliang Wang <ltnwgl@gmail.com> Signed-off-by: Gengliang Wang <ltnwgl@gmail.com>
This commit is contained in:
parent
7258f69188
commit
321c6545b3
|
@ -106,6 +106,8 @@ sed -i".tmp5" 's/__version__ = .*$/__version__ = "'"$R_NEXT_VERSION.dev0"'"/' py
|
|||
sed -i".tmp6" 's/SPARK_VERSION:.*$/SPARK_VERSION: '"$NEXT_VERSION"'/g' docs/_config.yml
|
||||
# Use R version for short version
|
||||
sed -i".tmp7" 's/SPARK_VERSION_SHORT:.*$/SPARK_VERSION_SHORT: '"$R_NEXT_VERSION"'/g' docs/_config.yml
|
||||
# Update the version index of DocSearch as the short version
|
||||
sed -i".tmp8" "s/'facetFilters':.*$/'facetFilters': [\"version:$R_NEXT_VERSION\"]/g" docs/_config.yml
|
||||
|
||||
git commit -a -m "Preparing development version $NEXT_VERSION"
|
||||
|
||||
|
|
Loading…
Reference in a new issue