diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index be017271c97f..0714c400e2af 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -252,14 +252,14 @@ jobs: run: make -f Makefile.win samples x86_64-windows-release: - if: github.repository_owner == 'crystal-lang' && (startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/ci/')) + if: github.repository_owner == 'crystal-lang' && (startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/ci/')) needs: [x86_64-windows-libs, x86_64-windows-dlls, x86_64-windows-llvm] uses: ./.github/workflows/win_build_portable.yml with: release: true x86_64-windows-installer: - if: github.repository_owner == 'crystal-lang' && (startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/ci/')) + if: github.repository_owner == 'crystal-lang' && (startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/ci/')) runs-on: windows-2022 needs: [x86_64-windows-release] steps: