mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-29 18:01:53 -05:00
fix(ci): remove unecessary semver check for release notes [skip ci]
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
11
.github/actions/create_release_and_archive.sh
vendored
11
.github/actions/create_release_and_archive.sh
vendored
@@ -17,21 +17,12 @@ set -o errexit -o nounset -o pipefail
|
||||
|
||||
TAG="$1"
|
||||
|
||||
semver_regex='^[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*$'
|
||||
|
||||
# Check if an argument is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "No argument provided."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $TAG =~ $semver_regex ]]; then
|
||||
echo "Valid semver: $TAG"
|
||||
else
|
||||
echo "Invalid semver: $TAG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat > release_notes.txt << EOF
|
||||
## Installation
|
||||
|
||||
@@ -48,7 +39,7 @@ pip install --upgrade openllm==${TAG}
|
||||
|
||||
All available models: \`\`\`python -m openllm.models\`\`\`
|
||||
|
||||
To start a LLM: \`\`\`python -m openllm start dolly-v2\`\`\`
|
||||
To start a LLM: \`\`\`python -m openllm start opt\`\`\`
|
||||
|
||||
Find more information about this release in the [CHANGELOG.md](https://github.com/bentoml/OpenLLM/blob/main/CHANGELOG.md)
|
||||
|
||||
|
||||
8
.github/workflows/create-releases.yml
vendored
8
.github/workflows/create-releases.yml
vendored
@@ -83,7 +83,6 @@ jobs:
|
||||
- binary-distribution
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Download Python artifacts
|
||||
@@ -91,11 +90,8 @@ jobs:
|
||||
with:
|
||||
name: python-artifacts
|
||||
path: dist
|
||||
- name: Push Python artifacts to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@v1.8.8
|
||||
with:
|
||||
skip-existing: true
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
- name: Publish to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
prepare-for-dev-cycle:
|
||||
needs:
|
||||
- release
|
||||
|
||||
Reference in New Issue
Block a user