Skip to content

Commit 6876f05

Browse files
committed
feat(ci): Add macOS notarization to desktop workflow
- Add a step to decrypt secrets required for notarization. - Introduce a specific packaging step for macOS (`notarizeReleaseDmg`) to handle notarization. - Separate the packaging step for Linux and Windows, which do not require notarization.
1 parent eb1f4cc commit 6876f05

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/desktop.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ jobs:
2626
with:
2727
cache-read-only: false
2828
cache-overwrite-existing: true
29-
- name: Packaging
30-
run: ./gradlew packageReleaseDistributionForCurrentOS #TODO packageRelease
29+
- name: Decrypt large secret
30+
run: ./.github/scripts/decrypt_secret.sh
31+
env:
32+
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
33+
- name: Packaging (macOS)
34+
if: matrix.os == 'macos-latest'
35+
run: ./gradlew --no-configuration-cache :app:desktop:notarizeReleaseDmg
36+
- name: Packaging (Linux & Windows)
37+
if: matrix.os != 'macos-latest'
38+
run: ./gradlew packageReleaseDistributionForCurrentOS
3139
- name: Release
3240
uses: softprops/action-gh-release@v2
3341
with:

0 commit comments

Comments
 (0)