diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d43b569..129725e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,13 +2,16 @@ name: Build on: push: - tags: - - 'v*' + tags: [ "v*" ] + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }} matrix: os: [macos-latest, windows-latest]