Merge pull request #10777 from sharifelgamal/auto-release

updating latest release on front page on release
pull/10787/head
Medya Ghazizadeh 2021-03-10 12:27:27 -08:00 committed by GitHub
commit b4552e0bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ git status
#Prepends the new version to the release.json file
sed -i "0,/{/s/{/{\n \"name\": \"${TAGNAME}\",\n \"checksums\": {\n \"darwin\": \"${DARWIN_SHA256}\",\n \"linux\": \"${LINUX_SHA256}\",\n \"windows\": \"${WINDOWS_SHA256}\"\n }\n },\n {"/ deploy/minikube/releases.json
#Update the front page of our documentation
now=$(date +"%b %d, %Y")
sed -i "s/Latest Release: .* (/Latest Release: ${TAGNAME} - ${now} (/" site/content/en/docs/_index.md
git add -A
git commit -m "Update releases.json to include ${TAGNAME}"
git remote add minikube-bot git@github.com:minikube-bot/minikube.git