diff --git a/.github/workflows/create-installer.yml b/.github/workflows/create-installer.yml index 4037ff6e7cb..ef25a6f0669 100644 --- a/.github/workflows/create-installer.yml +++ b/.github/workflows/create-installer.yml @@ -11,6 +11,7 @@ on: env: C2_PORTABLE_INSTALLER_VERSION: "v0.1.3" C2_PORTABLE_INSTALLER_SHA256: "1226165a328e9b1ce96ccc1b3a641fe9020708b5e2f88a486e226e2b4f259aa8" + RELEASE_NIGHTLY_INSTALLER: "OFF" jobs: create-installer: @@ -72,7 +73,7 @@ jobs: name: ${{ steps.bundle-portable.outputs.C2_PORTABLE_BASE_NAME }}${{ env.VARIANT_SUFFIX }}.zip - name: Create nightly release - if: ${{ contains(steps.build-installer.outputs.C2_INSTALLER_BASE_NAME, 'Nightly') }} + if: ${{ contains(steps.build-installer.outputs.C2_INSTALLER_BASE_NAME, 'Nightly') && env.RELEASE_NIGHTLY_INSTALLER == 'ON' }} uses: ncipollo/release-action@v1.12.0 with: replacesArtifacts: true