From 352c2ee0033e60181f7aeae7bf015dc5fc61db69 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Sun, 4 Jun 2023 15:23:14 -0700 Subject: [PATCH] fix(ci): add prefix v for archive creation Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- .github/actions/create_release_and_archive.sh | 2 +- .github/workflows/release-notes.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/create_release_and_archive.sh b/.github/actions/create_release_and_archive.sh index 24df66c0..b12c21fc 100755 --- a/.github/actions/create_release_and_archive.sh +++ b/.github/actions/create_release_and_archive.sh @@ -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 diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 8bb49a86..e548b6dd 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -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: