From 54a26ded8f5345360842daca0511fcc2cbc4dca8 Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar Date: Tue, 7 Jan 2025 11:10:22 +0530 Subject: [PATCH] fix(publish): updated the tag and if condition Signed-off-by: Ujjwal Kumar --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d802ea..80883da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: [master] - tags: ['v*'] + tags: ['*'] pull_request: branches: [master] @@ -37,6 +37,7 @@ jobs: env: PYTHON_VERSION: ${{ matrix.python-version }} run: tox + - name: Install release dependencies if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' run: | @@ -57,7 +58,8 @@ jobs: # Separate job for PyPI publishing publish: needs: test - if: startsWith(github.ref, 'refs/tags/') + # Changed the condition to check for any tag + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest environment: ci steps: