From e4ac7dd4d3f0ba737e1998ce76e0f62efb5d5ec1 Mon Sep 17 00:00:00 2001 From: Pratik Bhadane Date: Tue, 24 Mar 2026 11:23:41 +0530 Subject: [PATCH] fix: repair release workflow --- .github/workflows/release.yml | 8 ++++++-- Cargo.toml | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91b10b4..f5d9f21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,13 @@ name: Release -# Triggered when a version tag is pushed (e.g. v1.0.2). +# Triggered when a version tag is pushed (e.g. v1.0.3). # Creates a GitHub Release marked as "published", which in turn # triggers the build-wheels and publish jobs in CI.yml. on: push: tags: - - "v[0-9]+.[0-9]+.[0-9]+" + - "v*.*.*" permissions: contents: write @@ -25,6 +25,10 @@ jobs: id: version run: | VERSION="${GITHUB_REF_NAME#v}" + if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+([-.][0-9A-Za-z.]+)?$ ]]; then + echo "Expected a semantic-version tag like v1.0.3 or v1.0.3-rc1, got: $GITHUB_REF_NAME" + exit 1 + fi echo "version=$VERSION" >> "$GITHUB_OUTPUT" - name: Extract changelog entry for this version diff --git a/Cargo.toml b/Cargo.toml index 8e9399f..fd71d08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,14 @@ resolver = "2" name = "ferro_ta" version = "1.0.3" edition = "2021" +description = "Rust-powered Python technical analysis library with a TA-Lib-compatible API" license = "MIT" +readme = "README.md" +repository = "https://github.com/pratikbhadane24/ferro-ta" +homepage = "https://github.com/pratikbhadane24/ferro-ta#readme" +documentation = "https://pratikbhadane24.github.io/ferro-ta/" +keywords = ["technical-analysis", "trading", "indicators", "finance", "ta-lib"] +categories = ["finance", "mathematics"] publish = false [lib]