ci: build artifacts only on PR and tag

This commit is contained in:
redtide 2023-09-20 10:23:55 +02:00 committed by Paul Ferrand
parent c777ce9f4c
commit d0f126fb45

View file

@ -184,10 +184,10 @@ jobs:
sudo killall -9 AudioComponentRegistrar sudo killall -9 AudioComponentRegistrar
auval -v aumu samp Sfzt auval -v aumu samp Sfzt
- name: Package bundles - name: Package bundles
# if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag' || github.event_name == 'pull_request'
run: ./scripts/package-osx-bundles.sh run: ./scripts/package-osx-bundles.sh
- name: Create installer - name: Create installer
# if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag' || github.event_name == 'pull_request'
working-directory: ${{ github.workspace }}/build working-directory: ${{ github.workspace }}/build
run: | run: |
options=( options=(
@ -199,7 +199,7 @@ jobs:
) )
productbuild "${options[@]}" productbuild "${options[@]}"
- name: Upload - name: Upload
# if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag' || github.event_name == 'pull_request'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: macOS package name: macOS package
@ -263,11 +263,11 @@ jobs:
working-directory: ${{ github.workspace }}/build working-directory: ${{ github.workspace }}/build
run: pluginval --validate-in-process --validate sfizz.vst3 run: pluginval --validate-in-process --validate sfizz.vst3
- name: Create installer - name: Create installer
# if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag' || github.event_name == 'pull_request'
working-directory: ${{ github.workspace }}/build working-directory: ${{ github.workspace }}/build
run: iscc /O"." /F"${{ env.install_name }}" /dARCH="${{ matrix.platform }}" innosetup.iss run: iscc /O"." /F"${{ env.install_name }}" /dARCH="${{ matrix.platform }}" innosetup.iss
- name: Upload - name: Upload
# if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag' || github.event_name == 'pull_request'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.pkg_platform }} installer name: ${{ matrix.pkg_platform }} installer