From ff2e624c724dea6f9cc84f8e8b687931236e20d2 Mon Sep 17 00:00:00 2001 From: Alleria Date: Sun, 7 Jul 2024 14:32:10 -0700 Subject: [PATCH] sync toml file with release version --- .github/workflows/publish_release.yml | 4 +++- .github/workflows/test_publish_release.yml | 3 +++ pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 9b5d5f81..9a2a8b56 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -14,14 +14,16 @@ jobs: - uses: actions/checkout@v3 - name: Validate Tag Format run: | - run: | TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\-\.]+)?$' + echo "Regex to match: $TAG_REGEX" TAG="${GITHUB_REF/refs\/tags\//}" + echo "Tag extracted: $TAG" if [[ "$TAG" =~ $TAG_REGEX ]]; then echo "Tag format is valid." else echo "::error::Tag $TAG does not match the 'vMAJOR.MINOR.PATCH' or 'vMAJOR.MINOR.PATCH-pre-release' format." exit 1 + fi shell: bash build-and-test: diff --git a/.github/workflows/test_publish_release.yml b/.github/workflows/test_publish_release.yml index 31837316..55390ec9 100644 --- a/.github/workflows/test_publish_release.yml +++ b/.github/workflows/test_publish_release.yml @@ -15,12 +15,15 @@ jobs: - name: Validate Tag Format run: | TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\-\.]+)?$' + echo "Regex to match: $TAG_REGEX" TAG="${GITHUB_REF/refs\/tags\//}" + echo "Tag extracted: $TAG" if [[ "$TAG" =~ $TAG_REGEX ]]; then echo "Tag format is valid." else echo "::error::Tag $TAG does not match the 'vMAJOR.MINOR.PATCH' or 'vMAJOR.MINOR.PATCH-pre-release' format." exit 1 + fi shell: bash build-and-package: diff --git a/pyproject.toml b/pyproject.toml index bd7bd564..f3134f3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "lightrag-project" -version = "v0.1.0-alpha.4" +version = "v0.1.0-alpha.5" description = "A project to develop and test the lightrag library" authors = ["Your Name "] license = "MIT"