Skip to content

Commit 5ee7199

Browse files
committed
v1.1.4
1 parent efb3542 commit 5ee7199

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/prod-cd.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,22 @@ jobs:
5252
5353
- name: Create IAP .p8 Key
5454
run: |
55-
echo "${{ secrets.APPLE_IAP_KEY }}" > ./src/main/resources/keys/${{ secrets.APPLE_IAP_KEY_NAME }}
55+
echo "${{ secrets.APPLE_IAP_KEY_PROD }}" > ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8
56+
57+
# 키 파일 크기 확인 (내용은 로그에 출력하지 않음)
58+
if [ -s "./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8" ]; then
59+
echo "✅ IAP key file created: $(wc -c < ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8) bytes"
60+
else
61+
echo "❌ IAP key file is empty!"
62+
exit 1
63+
fi
64+
65+
# PEM 형식 확인
66+
if grep -q "BEGIN PRIVATE KEY" ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8; then
67+
echo "✅ IAP key file appears to be in PEM format"
68+
else
69+
echo "⚠️ IAP key file may not be in PEM format"
70+
fi
5671
shell: bash
5772
# APPLE IN_APP 결제 관련 프로세스 끝
5873

0 commit comments

Comments
 (0)