Skip to content

Commit

Permalink
update release.sh
Browse files Browse the repository at this point in the history
Signed-off-by: oilbeater <liumengxinfly@gmail.com>
  • Loading branch information
oilbeater committed Feb 27, 2024
1 parent 29157d4 commit f9f2aae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:
packages_with_index: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
RELEASE_NAME_TEMPLATE: "{{ .Version }}"
15 changes: 11 additions & 4 deletions hack/release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -euo pipefail
# run hack/release.sh from the project root directory to publish the release
DOCS_DIR="../docs"

echo "check status of last commit build"
commit=$(git rev-parse HEAD)
Expand Down Expand Up @@ -56,10 +57,16 @@ git add VERSION
git commit -m "prepare for next release"
git push

echo "draft a release"
gh release create $VERSION --draft --generate-notes

echo "trigger action to build new base"
gh workflow run build-kube-ovn-base.yaml --ref $(git branch --show-current)

echo "Need to modify the doc version number manually"
echo "Modify the doc version number manually"
cd ${DOCS_DIR}
git checkout v1.12
git pull
sed -i "s/version: .*/version: ${VERSION}/" mkdocs.yml
git add mkdocs.yml
git commit -m "update version to ${VERSION}"
git push

echo "Manually update the release note with the new changelog"

0 comments on commit f9f2aae

Please sign in to comment.