Skip to content

Commit

Permalink
Allow exit code 2 for create-dmg
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 de94255 commit a9a7c8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ jobs:
run: python3 create_macos.py py2app && chmod +x ./dist/Toblerone.app

- name: Build dmg
run: cd ./dist/ && create-dmg 'Toblerone.app' && cp Toberone*dmg Toblerone.dmg
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"
exit 1
fi
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit a9a7c8f

Please sign in to comment.