Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 19, 2023
1 parent 9e7f96c commit 29db54d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
env:
MACOS_APP_RELEASE_PATH: frontend/appflowy_flutter/product/${{ needs.prepare.outputs.version }}/macos/Release
MACOS_DMG_NAME: ${{ matrix.environment }}_AppFlowy_${{ github.ref_name }}_macos-x86_64
MACOS_CODESIGN_ID: ${{ secrets.MACOS_CODESIGN_ID }}
steps:
- name: Checkout source code
uses: actions/checkout@v3
Expand Down Expand Up @@ -205,22 +206,22 @@ jobs:
- name: Check for Code signing ID
run: |
if [ -z "${{ secrets.MACOS_CODESIGN_ID }}" ]; then
if [ -z "${{ env.MACOS_CODESIGN_ID }}" ]; then
echo "MACOS_CODESIGN_ID is not set. Skipping code signing step."
else
echo "MACOS_CODESIGN_ID is set. Proceeding with code signing."
fi
- name: Codesign AppFlowy
if: ${{ secrets.MACOS_CODESIGN_ID }} != ''
if: env.MACOS_CODESIGN_ID != ''
run: |
echo ${{ secrets.MACOS_CERTIFICATE }} | base64 --decode > certificate.p12
security create-keychain -p action build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p action build.keychain
security import certificate.p12 -k build.keychain -P ${{ secrets.MACOS_CERTIFICATE_PWD }} -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k action build.keychain
/usr/bin/codesign --force --options runtime --deep --sign "${{ secrets.MACOS_CODESIGN_ID }}" "${{ env.MACOS_APP_RELEASE_PATH }}/AppFlowy.app" -v
/usr/bin/codesign --force --options runtime --deep --sign "${{ env.MACOS_CODESIGN_ID }}" "${{ env.MACOS_APP_RELEASE_PATH }}/AppFlowy.app" -v
- name: Create macOS dmg
run: |
Expand Down

0 comments on commit 29db54d

Please sign in to comment.