build(release.sh): regenerate docs after changing NVIM_API_PRERELEASE (#28229)

After #25574, the value of NVIM_API_PRERELEASE can affect docs, so docs
need to be regenerated after changing NVIM_API_PRERELEASE.
This commit is contained in:
zeertzjq
2024-04-08 17:46:41 +08:00
committed by GitHub
parent 624de849de
commit 978962f9a0
2 changed files with 5 additions and 3 deletions

View File

@ -61,6 +61,8 @@ _do_release_commit() {
$__sed -i.bk 's/(NVIM_API_PRERELEASE) true/\1 false/' CMakeLists.txt
build/bin/nvim --api-info > "test/functional/fixtures/api_level_$__API_LEVEL.mpack"
git add "test/functional/fixtures/api_level_${__API_LEVEL}.mpack"
build/bin/nvim -u NONE -l scripts/gen_vimdoc.lua
git add -u -- runtime/doc/
fi
$__sed -i.bk 's,(<releases>),\1\