From c822f0aee2d8c2ac02ce98d30d3a6715a8937e03 Mon Sep 17 00:00:00 2001 From: Alex Fedoseev Date: Wed, 28 Feb 2024 11:09:00 +0400 Subject: [PATCH] Build release only on version tag --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce5407d..6991a55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: build_macos: name: Build on ${{ matrix.os }} runs-on: ${{ matrix.os }} - # if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ + if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ needs: - validate strategy: @@ -137,7 +137,7 @@ jobs: build_linux: name: Build on ${{ matrix.container-os }} runs-on: ${{ matrix.host-os }} - # if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ + if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ needs: - validate strategy: @@ -192,7 +192,7 @@ jobs: build_windows: name: Build on ${{ matrix.os }} runs-on: ${{ matrix.os }} - # if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ + if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ needs: - validate strategy: @@ -271,7 +271,7 @@ jobs: - build_windows name: Prepare release runs-on: ubuntu-latest - # if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ + if: startsWith(github.ref, 'refs/tags/v') && github.ref ==~ /^refs\/tags\/v\d+\.\d+\.\d+.*/ steps: - name: Checkout repo