Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

fix(ci): release version check and publish jobs are tag-only

Nandakishor0ff105025366
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e1e3ac71..c24a2446 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -44,6 +44,7 @@ jobs:
run: python -m build
- name: Version matches the tag
+ if: startsWith(github.ref, 'refs/tags/v') # workflow_dispatch has no tag to match
run: |
pkg=$(python -c "import re;print(re.search(r'version = \"(.*)\"', open('pyproject.toml').read()).group(1))")
tag="${GITHUB_REF_NAME#v}"
@@ -59,6 +60,7 @@ jobs:
pypi:
needs: build
+ if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: pypi
permissions:
@@ -77,6 +79,7 @@ jobs:
github_release:
needs: build
+ if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write