diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b44e91a1..f0187c0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,10 +95,12 @@ jobs: # asset_content_type: application/zip - name: Create Zip (.Net6) + if: github.event_name == 'workflow_dispatch' && github.event.inputs.createRelease == 'true' run: Compress-Archive -Path ./AssetStudioGUI/bin/Release/net6.0-windows/publish/* -DestinationPath ./AssetStudioGUI/bin/Release/net6.0-windows/publish/AssetStudio.net6.zip shell: powershell - name: Upload Release Asset (.Net6) + if: github.event_name == 'workflow_dispatch' && github.event.inputs.createRelease == 'true' uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }}