diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2270e45..0567d18 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -59,25 +59,25 @@ jobs: wait - name: Upload artifacts Target Windows - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' && !contains(fromJSON('["pull_request"]'), github.event_name) }} uses: actions/upload-artifact@v2 with: name: build-windows path: artifacts/x86_64-windows - name: Upload artifacts Target Linux - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' && !contains(fromJSON('["pull_request"]'), github.event_name) }} uses: actions/upload-artifact@v2 with: name: build-linux path: artifacts/x86_64-linux - name: Upload artifacts Target MacOS - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' && !contains(fromJSON('["pull_request"]'), github.event_name) }} uses: actions/upload-artifact@v2 with: name: build-macos-x86 path: artifacts/x86_64-macos - name: Upload artifacts Target MacOS 2 - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' && !contains(fromJSON('["pull_request"]'), github.event_name) }} uses: actions/upload-artifact@v2 with: name: build-macos-aarch64