Skip to content

Commit bbdc8fd

Browse files
Add debugging for Sparkle public key extraction
- Add debug message before public key extraction - Add verification for public key file creation - Add detailed error output if public key extraction fails - Show contents of keys directory and private key file size - Help diagnose why public key extraction is failing - Ensure proper Sparkle key generation workflow debugging
1 parent bf8334f commit bbdc8fd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-and-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,20 @@ jobs:
217217
echo "✅ Private key generated successfully"
218218
219219
# Extract public key from private key
220+
echo "🔑 Extracting public key from private key..."
220221
./bin/generate_keys -x keys/ed25519_private_key.pem > keys/ed25519_public_key.pem
221222
223+
# Verify public key was created
224+
if [ ! -f "keys/ed25519_public_key.pem" ] || [ ! -s "keys/ed25519_public_key.pem" ]; then
225+
echo "❌ Failed to extract public key"
226+
echo "📁 Contents of keys directory:"
227+
ls -la keys/
228+
echo "📄 Private key file size:"
229+
ls -la keys/ed25519_private_key.pem
230+
exit 1
231+
fi
232+
233+
echo "✅ Public key extracted successfully"
222234
PUBLIC_KEY=$(grep -v "BEGIN\|END" keys/ed25519_public_key.pem | tr -d '\n')
223235
echo "Public key: $PUBLIC_KEY"
224236

0 commit comments

Comments
 (0)