From d0f126fb4588f3fd4a0e81872486bfd2752ef7ce Mon Sep 17 00:00:00 2001 From: redtide Date: Wed, 20 Sep 2023 10:23:55 +0200 Subject: [PATCH] ci: build artifacts only on PR and tag --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5eeba31..d807ff2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -184,10 +184,10 @@ jobs: sudo killall -9 AudioComponentRegistrar auval -v aumu samp Sfzt - name: Package bundles - # if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' || github.event_name == 'pull_request' run: ./scripts/package-osx-bundles.sh - name: Create installer - # if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' || github.event_name == 'pull_request' working-directory: ${{ github.workspace }}/build run: | options=( @@ -199,7 +199,7 @@ jobs: ) productbuild "${options[@]}" - name: Upload - # if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' || github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: macOS package @@ -263,11 +263,11 @@ jobs: working-directory: ${{ github.workspace }}/build run: pluginval --validate-in-process --validate sfizz.vst3 - name: Create installer - # if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' || github.event_name == 'pull_request' working-directory: ${{ github.workspace }}/build run: iscc /O"." /F"${{ env.install_name }}" /dARCH="${{ matrix.platform }}" innosetup.iss - name: Upload - # if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' || github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: ${{ matrix.pkg_platform }} installer