Commit a00a80e
fix(ci): auto-detect .p8 PEM vs base64; use macOS base64 -D flag
The API key write step now handles both formats:
- If APP_STORE_CONNECT_PRIVATE_KEY starts with '-----BEGIN' → raw PEM,
written directly.
- Otherwise → assumed base64-encoded, decoded with base64 -D (macOS
BSD flag, equivalent to --decode on GNU).
Validation step confirms the final file looks like PEM before proceeding.
Also switches IOS_DISTRIBUTION_CERTIFICATE decode to base64 -D for
consistency on macOS runners.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a7adeb7 commit a00a80e
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
125 | 139 | | |
126 | 140 | | |
127 | 141 | | |
| |||
0 commit comments