Skip to content

Commit

Permalink
Build release only on version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil committed Feb 28, 2024
1 parent da13de3 commit c822f0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c822f0a

Please sign in to comment.