Commit 9f2f530
committed
refactor: Improve GitHub Actions workflow for Android builds
This commit refactors the Android build workflow in `.github/workflows/android.yml` with the following improvements:
- **Secrets Handling:**
- Secrets (keystore and Google Play JSON) are now downloaded as artifacts in the `build` job instead of being decoded in each job. This reduces redundancy and improves security by minimizing exposure of secrets.
- The `setup` job now uploads secrets as artifacts.
- **Dependency on `setup`:**
- The `unit-test` and `code-analysis` jobs now explicitly depend on the `setup` job, ensuring secrets are available before these jobs run.
- **Workflow Optimization:**
- Added `fetch-depth: 1` and `persist-credentials: false` to `actions/checkout@v3` for faster checkouts and improved security.
- Renamed "Setup Ruby" step to "Setup Ruby & Dependencies" for clarity.
- **Path Correction:**
- Corrected the path for `KEYSTORE_FILE` in `local.properties` to point to the root level where it's downloaded.
- **Cleanup:**
- Removed debugging steps for `ls -la app` and `cat local.properties`.1 parent 8f2babc commit 9f2f530
1 file changed
+47
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
68 | 82 | | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
75 | | - | |
| 89 | + | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
| |||
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
100 | 113 | | |
101 | | - | |
| 114 | + | |
102 | 115 | | |
103 | 116 | | |
104 | 117 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
128 | | - | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| |||
149 | 156 | | |
150 | 157 | | |
151 | 158 | | |
152 | | - | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| 163 | + | |
| 164 | + | |
156 | 165 | | |
157 | 166 | | |
158 | 167 | | |
| |||
177 | 186 | | |
178 | 187 | | |
179 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
180 | 192 | | |
181 | 193 | | |
182 | 194 | | |
183 | 195 | | |
| 196 | + | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
187 | 200 | | |
| 201 | + | |
188 | 202 | | |
189 | 203 | | |
190 | 204 | | |
| 205 | + | |
191 | 206 | | |
192 | 207 | | |
193 | 208 | | |
| |||
198 | 213 | | |
199 | 214 | | |
200 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
201 | 219 | | |
202 | 220 | | |
203 | 221 | | |
204 | 222 | | |
| 223 | + | |
205 | 224 | | |
206 | 225 | | |
207 | 226 | | |
208 | 227 | | |
| 228 | + | |
209 | 229 | | |
210 | 230 | | |
211 | 231 | | |
| 232 | + | |
212 | 233 | | |
213 | 234 | | |
214 | 235 | | |
| |||
219 | 240 | | |
220 | 241 | | |
221 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
222 | 246 | | |
223 | 247 | | |
224 | 248 | | |
225 | 249 | | |
| 250 | + | |
226 | 251 | | |
227 | 252 | | |
228 | 253 | | |
229 | 254 | | |
| 255 | + | |
230 | 256 | | |
231 | 257 | | |
232 | 258 | | |
| 259 | + | |
233 | 260 | | |
0 commit comments