From aa468dcf9c55f27c67e7ac1daa66a03f96dfaede Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Thu, 13 May 2021 05:53:46 +0200 Subject: [PATCH] Only upload artifacts for certain operating systems in the matrix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52897aa..8507dea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: ${{ startsWith(github.ref, 'refs/tags/') && (os.matrix == 'windows-2019' || os.matrix == 'macos-10.15' || os.matrix == 'ubuntu-16.04') }} with: prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }} files: ${{ github.event.repository.name }}-${{ steps.osname.outputs.lowercase }}.zip