Commit c291def
authored
Trying to get CD on Website without always pushing whole app to Winget (#2842)
This pull request updates the `.github/workflows/main.yml` file to
refine the conditions under which various workflow jobs are executed.
The changes focus on clarifying and adjusting the release logic,
ensuring that jobs are only triggered under appropriate circumstances,
and improving readability with comments.
### Workflow logic improvements:
* Updated the `RunRelease` condition to trigger only when `ForceRelease`
is true or source code changes are detected, and removed unnecessary
checks for documentation changes in the `Preview` ring.
(`[.github/workflows/main.ymlR227-R262](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R227-R262)`)
* Modified the build job to run only when source code changes are
detected, simplifying the condition.
(`[.github/workflows/main.ymlL351-R354](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L351-R354)`)
* Adjusted the release jobs (`Release to Marketplace`, `Release to
Chocolatey`, `Release to Winget`) to ensure they only run when the app
was released, with additional checks for the production environment in
the marketplace release.
(`[[1]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L583-R589)`,
`[[2]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L612-R619)`,
`[[3]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L636-R644)`)
* Added comments to clarify the purpose of each condition, improving
maintainability and readability across all affected jobs.
(`[[1]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L501-R505)`,
`[[2]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L568-R573)`,
`[[3]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R665)`)1 file changed
+22
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| 255 | + | |
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
257 | | - | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
| 262 | + | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| |||
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
351 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
| |||
498 | 502 | | |
499 | 503 | | |
500 | 504 | | |
501 | | - | |
| 505 | + | |
| 506 | + | |
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
| |||
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
568 | | - | |
| 573 | + | |
| 574 | + | |
569 | 575 | | |
570 | 576 | | |
571 | 577 | | |
| |||
580 | 586 | | |
581 | 587 | | |
582 | 588 | | |
583 | | - | |
| 589 | + | |
| 590 | + | |
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
| |||
609 | 616 | | |
610 | 617 | | |
611 | 618 | | |
612 | | - | |
| 619 | + | |
| 620 | + | |
613 | 621 | | |
614 | 622 | | |
615 | 623 | | |
| |||
633 | 641 | | |
634 | 642 | | |
635 | 643 | | |
636 | | - | |
| 644 | + | |
| 645 | + | |
637 | 646 | | |
638 | 647 | | |
639 | 648 | | |
| |||
654 | 663 | | |
655 | 664 | | |
656 | 665 | | |
| 666 | + | |
657 | 667 | | |
658 | 668 | | |
659 | 669 | | |
| |||
0 commit comments