From 831212ce102d02dce4c9af6a11d752c9ee5bfec5 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Thu, 14 Nov 2024 18:35:15 -0600 Subject: [PATCH] Add tag listener to workflow ' --- .github/workflows/release.yml | 5 ++++- scripts/build.sh | 24 ------------------------ 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 843725f..9467b7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ name: Release on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' workflow_dispatch: inputs: stage: @@ -130,7 +133,7 @@ jobs: path: packaging/${{ env.ARTIFACT_NAME }}.dmg Release: -# if: startsWith(github.event.ref, 'refs/tags/v') + if: startsWith(github.event.ref, 'refs/tags/v') runs-on: ubuntu-latest needs: [ Package ] steps: diff --git a/scripts/build.sh b/scripts/build.sh index 75f8406..f1ae450 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,7 +5,6 @@ start_time=$(date +%s) COPY_BUILD_STEP=false -PRECOMPILE_STEP=false DAW_TO_OPEN= REMOVE_PREV_BUILD=false BUILD_TYPE=Debug @@ -19,10 +18,6 @@ for i in "$@"; do COPY_BUILD_STEP=true shift ;; - -p|-precompile) - PRECOMPILE_STEP=true - shift - ;; -d=*|--daw=*) DAW_TO_OPEN="${i#*=}" shift @@ -43,25 +38,6 @@ if [ ${REMOVE_PREV_BUILD} = true ]; then echo -e "[Success] Removed previous build's folders!\n" fi -#if [ ! -d "./vendor/juce/build" ]; then -# cd ./vendor/juce -# -# echo -e "Configuring JUCE...\n" -# cmake -B bin . -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -# echo -e "\n[Success] Configured JUCE build!\n" -# -# echo -e "Building JUCE...\n" -# cmake --build bin --parallel 8 -# echo -e "\n[Success] Built JUCE libraries and targets!\n" -# -# cd ../../ -#fi - -if [ ${PRECOMPILE_STEP} = true ]; then - scripts/precompile.sh -b=${BUILD_TYPE} - echo -e "\n[Success] Precompiled binary resources!\n" -fi - echo -e "Configuring ${PLUGIN_NAME}...\n" cmake -B bin . -DCMAKE_BUILD_TYPE="$BUILD_TYPE" echo -e "\n[Success] Configured plugin build!\n"