diff --git a/hack/gen-release.sh b/hack/gen-release.sh index 76234c1414..de55afd926 100755 --- a/hack/gen-release.sh +++ b/hack/gen-release.sh @@ -24,8 +24,8 @@ done echo "Prepare release for version $1" # Update release file -RELEASE_FILE=release/RELEASE -echo -e "version: $1" > $RELEASE_FILE +RELEASE_FILE=RELEASE +sed -i '' "s/tag:.*/tag: $1/" $RELEASE_FILE CONTENT_DIR=docs/content/en # Render release note template diff --git a/hack/gen-stable-docs.sh b/hack/gen-stable-docs.sh index 1aec67774a..ea9e87aa33 100755 --- a/hack/gen-stable-docs.sh +++ b/hack/gen-stable-docs.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# get version from the release/RELEASE file and create the version docs string +# get version from the RELEASE file and create the version docs string # for example, with the release file content: # version: v0.21.0 # the version docs string will be v0.21.x