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:
aarnphm-ec2-dev
2023-07-21 05:50:35 +00:00
parent 033358a991
commit 8eb143ff60
2 changed files with 3 additions and 16 deletions

View File

@@ -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)

View File

@@ -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