From d7bdccfddb1e415c132a56e8051ef3f7513fe5db Mon Sep 17 00:00:00 2001 From: alice pellerin Date: Fri, 1 May 2026 16:16:14 -0500 Subject: [PATCH] only let publish run on tags --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d0420fa..0c94a00 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,8 @@ jobs: - uses: actions/checkout@v6 - name: check version # cut off the v part of the tag to only search for the number - run: grep -q "$(echo "${{ github.ref_name }}" | cut -c2-)" Cargo.toml + # include the " = " to not match on main, only v* tags + run: grep -q " = \"$(echo "${{ github.ref_name }}" | cut -c2-)\"" Cargo.toml - uses: rust-lang/crates-io-auth-action@v1 id: auth - run: cargo publish