Skip to content

Commit 253ee11

Browse files
committed
upload completely signed app
1 parent 6ddc447 commit 253ee11

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-mac.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
sem-version:
99
description: 'Version'
1010
required: false
11+
notarize:
12+
description: 'Notarize app'
13+
required: false
1114

1215
permissions:
1316
contents: write
@@ -111,11 +114,6 @@ jobs:
111114
--java-options "-Xss5m"
112115
--java-options "-Xmx256m"
113116
--java-options "-Dfile.encoding=\"utf-8\""
114-
- uses: actions/upload-artifact@v4
115-
with:
116-
name: cryptomator-cli-mac-${{ matrix.architecture }}
117-
path: ./target/cryptomator-cli*.app #Cheat to include the parent *app dir in the archive
118-
if-no-files-found: error
119117
- name: Patch .app dir
120118
run: |
121119
sed -i '' "s|###BUNDLE_SHORT_VERSION_STRING###|${VERSION_NO}|g" ./target/cryptomator-cli.app/Contents/Info.plist
@@ -178,7 +176,7 @@ jobs:
178176
- name: Zip binary for release
179177
run: zip -r ./${{ matrix.artifact-name}} ./target/cryptomator-cli.app
180178
- name: Notarize .dmg
181-
if: startsWith(github.ref, 'refs/tags/')
179+
if: startsWith(github.ref, 'refs/tags/') || inputs.notarize
182180
uses: cocoalibs/xcode-notarization-action@v1
183181
with:
184182
app-path: ${{ matrix.artifact-name }}
@@ -193,6 +191,13 @@ jobs:
193191
env:
194192
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
195193
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
194+
- uses: actions/upload-artifact@v4
195+
with:
196+
name: cryptomator-cli-mac-${{ matrix.architecture }}
197+
path: |
198+
${{ matrix.artifact-name}}
199+
*.asc
200+
if-no-files-found: error
196201
- name: Publish artefact on GitHub Releases
197202
if: startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
198203
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)