mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-28 09:21:59 -05:00
29 lines
772 B
Bash
Executable File
29 lines
772 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo "Releasing new version."
|
|
|
|
! [ -x hatch ] && (
|
|
echo "Make sure to have hatch available: 'pip install hatch'"
|
|
exit 1
|
|
)
|
|
|
|
echo "Cleaning previously built artifacts..." && hatch clean
|
|
|
|
echo "Bumping version ..." && hatch version micro
|
|
|
|
NEW_VERSION=$(hatch version)
|
|
|
|
git add src/openllm/__about__.py && git commit -sm "infra: prepare for release ${NEW_VERSION} [generated]"
|
|
git push origin main
|
|
|
|
echo "Building artifacts for releasing..." && hatch build
|
|
|
|
echo "Releasing version ${NEW_VERSION}" && hatch release
|
|
|
|
echo "Finish releasing version ${NEW_VERSION}"
|
|
|
|
echo "Bumping version to dev" && hatch version dev
|
|
|
|
git add src/openllm/__about__.py && git commit -sm "infra: bump to dev version of ${NEW_VERSION} [generated]"
|
|
git push origin main
|