fix(ci): add prefix v for archive creation

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron
2023-06-04 15:23:14 -07:00
parent 53dbcbac97
commit 352c2ee003
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ TAG=${GITHUB_REF_NAME#v}
PREFIX="openllm-${TAG}"
ARCHIVE="openllm-${TAG}.tar.gz"
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "${ARCHIVE}"
git archive --format=tar --prefix="${PREFIX}/" "v${TAG}" | gzip > "${ARCHIVE}"
cat > release_notes.txt << EOF
## Installation

View File

@@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'
- 'v[0-9]+.[0-9]+.[0-9]+'
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun
defaults:
run: