Commit a7adeb7
fix(ci): write .p8 API key as raw text, read APPLE_TEAM_ID from secrets
Two bugs that caused the TestFlight upload to fail immediately:
1. APP_STORE_CONNECT_PRIVATE_KEY was piped through base64 --decode
but it's a plain text PEM file, not base64-encoded. macOS base64
gives 'stdin: (null): error' when the input contains PEM headers.
Fixed: use printf '%s' directly, no decode step.
2. APPLE_TEAM_ID was read via vars.APPLE_TEAM_ID (Actions Variables)
but the secret is stored under Secrets, so the value was always
empty. Fixed: reference as secrets.APPLE_TEAM_ID everywhere.
Also added early-exit validation so empty secrets fail fast with a
clear error message instead of a cryptic build failure 10 min later.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 413e2e9 commit a7adeb7
1 file changed
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
| 110 | + | |
112 | 111 | | |
113 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | | - | |
116 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
121 | | - | |
| 129 | + | |
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
| |||
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | | - | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
0 commit comments