mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-04-19 22:48:39 -04:00
infra: add release script
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
29
.github/actions/create_release_and_archive.sh
vendored
29
.github/actions/create_release_and_archive.sh
vendored
@@ -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
2
.github/actions/release.sh → release.sh
Executable file → Normal 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}"
|
||||
Reference in New Issue
Block a user