diff --git a/.github/workflows/Maven-BuildAndRealese.yml b/.github/workflows/Maven-BuildAndRealese.yml index 476f897..1222db7 100644 --- a/.github/workflows/Maven-BuildAndRealese.yml +++ b/.github/workflows/Maven-BuildAndRealese.yml @@ -32,9 +32,12 @@ jobs: release: needs: build runs-on: ubuntu-latest - if: github.ref_type == 'tag' # Only run on tags (i.e., version releases) + if: startsWith(github.ref, 'refs/tags/v') # Ensures it runs for tags starting with "v" steps: + - name: Debugging - Print github.ref + run: echo "GITHUB REF: ${{ github.ref }}" + - name: Checkout code uses: actions/checkout@v4 # Updated to v4