Refactor macOS alpha build workflow: Update artifact naming and signing

This commit is contained in:
mauro-balades
2024-09-08 18:08:27 +02:00
parent 7c68779e98
commit 977a2a81dd
3 changed files with 8 additions and 7 deletions

View File

@@ -148,7 +148,6 @@ jobs:
- name: Rename artifacts
run: |
mv ./dist/*.dmg "zen.macos-${{ matrix.arch }}.dmg"
mv ./dist/output.mar macos-${{ matrix.arch }}.mar
rm -rf certificate.p12
@@ -156,12 +155,14 @@ jobs:
- name: Sign to .dmg
run: |
hdiutil convert ./dist/*.dmg -format UDZO -imagekey zlib-level=9 -o zen.macos-${{ matrix.arch }}.dmg
codesign -s "${{ secrets.macOS_AppleDeveloperId }}" zen.macos-${{ matrix.arch }}.dmg
xcrun notarytool submit "zen.macos-${{ matrix.arch }}.dmg" \
--apple-id "${{ secrets.macOS_AppleAccountId }}" \
--team-id "${{ secrets.macOS_AppleDeveloperIdTeamId }}" \
--password "${{ secrets.macOS_AppleDeveloperIdPassword }}" \
--wait
xcrun stapler staple "zen.macos-${{ matrix.arch }}.dmg"
- name: Upload artifact
uses: actions/upload-artifact@v4