infra: add release script

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-07-10 20:21:17 -04:00
parent c74f3de6c7
commit c82adf67bd
2 changed files with 1 additions and 30 deletions

View File

@@ -1,29 +0,0 @@
set -o errexit -o nounset -o pipefail
TAG="${1#v}"
# Check if an argument is provided
if [ $# -eq 0 ]; then
echo "No argument provided."
exit 1
fi
cat >release_notes.txt <<EOF
## Installation
\`\`\`bash
pip install openllm==${TAG}
\`\`\`
To upgrade from a previous version, use the following command:
\`\`\`bash
pip install --upgrade openllm==${TAG}
\`\`\`
## Usage
To start a LLM: \`\`\`python -m openllm start HuggingFaceH4/zephyr-7b-beta\`\`\`
Find more information about this release in the [CHANGELOG.md](https://github.com/bentoml/OpenLLM/blob/main/CHANGELOG.md)
EOF

2
.github/actions/release.sh → release.sh Executable file → Normal file
View File

@@ -110,4 +110,4 @@ fi
echo "Commit count: $(git rev-list --count HEAD)"
echo "Releasing tag ${RELEASE_VERSION}..." && git tag -a "v${RELEASE_VERSION}" -sm "Release ${RELEASE_VERSION} [generated by GitHub Actions]"
git push origin "v${RELEASE_VERSION}"
echo "Finish releasing RELEASE_VERSION ${RELEASE_VERSION}"
echo "Finish releasing OpenLLM ${RELEASE_VERSION}"