File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,10 +178,28 @@ jobs:
178178 - name : Verify Certificate
179179 if : matrix.platform == 'macos-latest'
180180 run : |
181- CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Apple Development")
181+ # List all code signing identities
182+ security find-identity -v -p codesigning build.keychain
183+
184+ # Try to find Apple Distribution certificate first (for DMG signing)
185+ CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep -E "Apple Distribution|Apple Development" | head -n 1)
186+
187+ if [ -z "$CERT_INFO" ]; then
188+ echo "Error: No Apple certificate found in keychain"
189+ security find-identity -v -p codesigning build.keychain
190+ exit 1
191+ fi
192+
182193 CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
194+
195+ if [ -z "$CERT_ID" ]; then
196+ echo "Error: Failed to extract certificate ID"
197+ exit 1
198+ fi
199+
183200 echo "CERT_ID=$CERT_ID" >> $GITHUB_ENV
184- echo "Certificate imported."
201+ echo "Certificate ID: $CERT_ID"
202+ echo "Certificate imported and verified."
185203
186204 - name : Install frontend dependencies
187205 run : pnpm install
You can’t perform that action at this time.
0 commit comments