Skip to content

Commit

Permalink
Move cp dmg to own step
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Lonsdale authored and Andrew Lonsdale committed Mar 3, 2022
1 parent bb328ba commit d80b6f4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d80b6f4

Please sign in to comment.