diff --git a/.github/workflows/release_rust.yaml b/.github/workflows/release_rust.yaml index 1cc3b16..5f7b0e2 100644 --- a/.github/workflows/release_rust.yaml +++ b/.github/workflows/release_rust.yaml @@ -31,8 +31,8 @@ jobs: - name: Check Cargo.toml version matches Release tag run: | CARGO_VERSION=$(grep '^version =' Cargo.toml | sed 's/.*"\(.*\)".*/\1/') - if [ "${GITHUB_REF#refs/tags/v}" != "$CARGO_VERSION" ]; then - echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/v})" + if [ "${GITHUB_REF#refs/tags/}" != "$CARGO_VERSION" ]; then + echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/})" exit 1 fi diff --git a/Cargo.toml b/Cargo.toml index e93be5e..39d2518 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outlines-core" -version = "0.1.19" +version = "0.1.20" edition = "2021" description = "Structured Generation" license = "Apache-2.0"