Skip to content

Commit 60d4ae6

Browse files
committed
chore: bump build to 33 - testing pipeline with fixed API key
1 parent 3bfaae1 commit 60d4ae6

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ jobs:
154154
echo "⚠️ String may contain invalid base64 characters"
155155
# Show which characters are invalid
156156
echo "$APP_STORE_CONNECT_API_KEY_BASE64" | sed 's/[A-Za-z0-9+/=]//g' | od -c
157+
158+
# Check for URL encoding
159+
if echo "$APP_STORE_CONNECT_API_KEY_BASE64" | grep -q '%'; then
160+
echo "🔍 Detected URL encoding (contains % character)"
161+
echo " The secret appears to be URL-encoded. This is incorrect."
162+
fi
157163
fi
158164
159165
# Create directory for API key

V2er/Config/Version.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
MARKETING_VERSION = 1.1.3
1010

1111
// VERSION_CODE - Internal build number (e.g., 29, 30, 31...)
12-
CURRENT_PROJECT_VERSION = 32
12+
CURRENT_PROJECT_VERSION = 33

encode-p8-key.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
# Script to properly encode .p8 key for GitHub secrets
4+
# Usage: ./encode-p8-key.sh path/to/AuthKey_XXXXXX.p8
5+
6+
if [ $# -eq 0 ]; then
7+
echo "Usage: $0 path/to/AuthKey_XXXXXX.p8"
8+
exit 1
9+
fi
10+
11+
P8_FILE="$1"
12+
13+
if [ ! -f "$P8_FILE" ]; then
14+
echo "Error: File $P8_FILE not found"
15+
exit 1
16+
fi
17+
18+
echo "Encoding $P8_FILE to base64..."
19+
echo ""
20+
21+
# Method 1: Create base64 string without any newlines
22+
BASE64_CONTENT=$(cat "$P8_FILE" | base64 | tr -d '\n')
23+
24+
echo "✅ Base64 encoded successfully!"
25+
echo ""
26+
echo "Length: $(echo -n "$BASE64_CONTENT" | wc -c) characters"
27+
echo ""
28+
echo "First 20 chars: $(echo -n "$BASE64_CONTENT" | head -c 20)..."
29+
echo "Last 20 chars: ...$(echo -n "$BASE64_CONTENT" | tail -c 20)"
30+
echo ""
31+
echo "==============================================="
32+
echo "Copy the following content to your GitHub secret APP_STORE_CONNECT_API_KEY_BASE64:"
33+
echo "==============================================="
34+
echo ""
35+
echo "$BASE64_CONTENT"
36+
echo ""
37+
echo "==============================================="
38+
echo ""
39+
echo "To set this in GitHub:"
40+
echo "1. Go to Settings > Secrets and variables > Actions"
41+
echo "2. Edit APP_STORE_CONNECT_API_KEY_BASE64"
42+
echo "3. Paste the entire base64 string above (everything between the lines)"
43+
echo "4. Save the secret"

0 commit comments

Comments
 (0)