From 9a81239f8eaa7d020843e74d685c91ac6942e320 Mon Sep 17 00:00:00 2001 From: Abdullah Yasir <56272322+teckmk@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:02:50 +0500 Subject: [PATCH] fix: workflow --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d34f17..ee92d98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,10 @@ name: CI on: push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' branches: - main - tags: - - 'v*.*.*' - pull_request: @@ -51,7 +50,7 @@ jobs: build_and_deploy: name: Build and Deploy to Crates.io - if: startsWith(github.event.workflow_run.head_sha, 'refs/tags/') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') needs: - build_and_test uses: ./.github/workflows/cd.yml