Skip to content

Commit efba6be

Browse files
committed
fix(workflow): update sign and notarize step for xcframework
1 parent ae0b9ed commit efba6be

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: build sqlite-sync
117117
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make extension ${{ matrix.make && matrix.make || ''}}
118118

119-
- name: sign and notarize xcframework
119+
- name: sign xcframework
120120
if: matrix.name == 'apple-xcframework'
121121
run: |
122122
echo "${{ secrets.APPLE_CERTIFICATE }}" | base64 --decode > certificate.p12
@@ -126,10 +126,7 @@ jobs:
126126
security import certificate.p12 -k build.keychain -P "${{ secrets.CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
127127
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
128128
codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/CloudSync.xcframework
129-
ditto -c -k --keepParent dist/CloudSync.xcframework dist/CloudSync.xcframework.zip
130-
xcrun notarytool submit dist/CloudSync.xcframework.zip --apple-id "${{ secrets.APPLE_ID }}" --password "${{ secrets.APPLE_PASSWORD }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" --wait
131-
xcrun stapler staple dist/CloudSync.xcframework
132-
rm dist/CloudSync.xcframework.zip certificate.p12
129+
rm certificate.p12
133130
security delete-keychain build.keychain
134131
135132
- name: android setup test environment

0 commit comments

Comments
 (0)