From d80b6f41ebe298270ca1939bdcf236375edd3a02 Mon Sep 17 00:00:00 2001 From: Andrew Lonsdale Date: Thu, 3 Mar 2022 14:46:12 +1100 Subject: [PATCH] Move cp dmg to own step --- .github/workflows/pyinstaller.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index 40102de..52f5810 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -67,13 +67,11 @@ jobs: run: | cd ./dist/ create-dmg 'Toblerone.app' - if [ $? -eq 2 ]; then - echo "Passed with code signing error" - cp Toberone*dmg Toblerone.dmg - else - echo "Some other error in create-dmg" - rm Toberone*dmg - fi + + - name: Rename dmg + run: | + echo "Previous step should passed with code signing error, exit(2)" + cd ./dist/ && cp Toberone*dmg Toblerone.dmg - name: Release uses: softprops/action-gh-release@v1