Skip to content

Commit

Permalink
upload completely signed app
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Nov 25, 2024
1 parent 6ddc447 commit 253ee11
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
sem-version:
description: 'Version'
required: false
notarize:
description: 'Notarize app'
required: false

permissions:
contents: write
Expand Down Expand Up @@ -111,11 +114,6 @@ jobs:
--java-options "-Xss5m"
--java-options "-Xmx256m"
--java-options "-Dfile.encoding=\"utf-8\""
- uses: actions/upload-artifact@v4
with:
name: cryptomator-cli-mac-${{ matrix.architecture }}
path: ./target/cryptomator-cli*.app #Cheat to include the parent *app dir in the archive
if-no-files-found: error
- name: Patch .app dir
run: |
sed -i '' "s|###BUNDLE_SHORT_VERSION_STRING###|${VERSION_NO}|g" ./target/cryptomator-cli.app/Contents/Info.plist
Expand Down Expand Up @@ -178,7 +176,7 @@ jobs:
- name: Zip binary for release
run: zip -r ./${{ matrix.artifact-name}} ./target/cryptomator-cli.app
- name: Notarize .dmg
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || inputs.notarize
uses: cocoalibs/xcode-notarization-action@v1
with:
app-path: ${{ matrix.artifact-name }}
Expand All @@ -193,6 +191,13 @@ jobs:
env:
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
- uses: actions/upload-artifact@v4
with:
name: cryptomator-cli-mac-${{ matrix.architecture }}
path: |
${{ matrix.artifact-name}}
*.asc
if-no-files-found: error
- name: Publish artefact on GitHub Releases
if: startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 253ee11

Please sign in to comment.