From 892946cb079bd9dc7fafb9ec34b59b8ab9c1f452 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Fri, 20 Nov 2020 15:41:23 +0200 Subject: [PATCH] Run the release step only for releases --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08bbfef..d2988c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,13 +85,14 @@ jobs: - name: Build bddisasm and bdshemu for Win32 run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=Win32 bddisasm.sln - name: Zip binaries + if: ${{ github.event_name == 'release' }} run: | del bin\x64\Release\*.idb del bin\Win32\Release\*.idb tar.exe -acf x64-windows-release.zip bin\x64\Release tar.exe -acf x86-windows-release.zip bin\Win32\Release - if: ${{ github.event_name == 'release' }} - name: Release + if: ${{ github.event_name == 'release' }} uses: AButler/upload-release-assets@v2.0 with: files: 'x64-windows-release.zip;x86-windows-release.zip'