7676
7777 # https://federicoterzi.com/blog/automatic-code-signing-and-notarization-for-macos-apps-using-github-actions/
7878 - name : Codesign app bundle
79- # if: github.event_name == 'workflow_dispatch'
79+ if : github.event_name == 'workflow_dispatch'
8080 env :
8181 MACOS_CERTIFICATE : ${{ secrets.MACOS_BUILD_CERTIFICATE_BASE64 }}
8282 MACOS_CERTIFICATE_PWD : ${{ secrets.MACOS_P12_PASSWORD }}
9595 /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" --options runtime "build/macosx/launcher/Release/Eternity Engine.app/Contents/Resources/SDL2_mixer.framework/Versions/A/SDL2_mixer" -v
9696 /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" --options runtime "build/macosx/launcher/Release/Eternity Engine.app" -v
9797 - name : Notarize app bundle
98- # if: github.event_name == 'workflow_dispatch'
98+ if : github.event_name == 'workflow_dispatch'
9999 env :
100100 PROD_MACOS_NOTARIZATION_APPLE_ID : ${{ secrets.MACOS_NOTARY_USER }}
101101 PROD_MACOS_NOTARIZATION_TEAM_ID : ${{ secrets.MACOS_TEAM_ID }}
@@ -114,19 +114,19 @@ jobs:
114114 xcrun stapler staple "build/macosx/launcher/Release/Eternity Engine.app"
115115
116116 - name : Add text files
117- # if: github.event_name == 'workflow_dispatch'
117+ if : github.event_name == 'workflow_dispatch'
118118 run : |
119119 cp COPYING build/macosx/launcher/Release/COPYING.txt
120120 cp COPYING-EE build/macosx/launcher/Release/COPYING-EE.txt
121121 cp docs/readme.txt "build/macosx/launcher/Release/ee-$(git describe --tags).txt"
122122
123123 - name : build DMG
124- # if: github.event_name == 'workflow_dispatch'
124+ if : github.event_name == 'workflow_dispatch'
125125 run : |
126126 hdiutil create -srcfolder build/macosx/launcher/Release/ -volname "ee-$(git describe --tags)-${{ matrix.arch }}" -fs HFS+ -format UDZO ee-$(git describe --tags)-${{ matrix.arch }}.dmg
127127
128128 - name : Archive release build
129- # if: github.event_name == 'workflow_dispatch'
129+ if : github.event_name == 'workflow_dispatch'
130130 uses : actions/upload-artifact@v7.0.1
131131 with :
132132 path : " *.dmg"
0 commit comments