Commit ab3f2e0
committed
Simplify and modernize CI/CD workflow
- Rename `build_and_deploy_job` to `build-and-deploy` for consistency.
- Remove `if` condition to simplify job triggering logic.
- Add `DOTNET_TELEMETRY_OPTOUT` to disable .NET telemetry.
- Downgrade `actions/checkout` to v4 and `actions/setup-dotnet` to v4.
- Replace WASM workload install with `dotnet workload update`.
- Add step to clean repository build outputs (`dotnet clean`).
- Update `dotnet publish` to specify project file and output path.
- Remove debugging steps for build output structure.
- Update `Azure/static-web-apps-deploy` with new parameters:
- Set `app_location` to `/` and `output_location` to `build/publish`.
- Dynamically determine `deployment_environment` (production/staging).
- Remove `close_pull_request_job` to simplify workflow.
- Add `actions/upload-artifact` to archive published build output.
- Use `AZURE_STATIC_WEB_APPS_API_TOKEN` secret for deployment.1 parent 27fee72 commit ab3f2e0
1 file changed
Lines changed: 31 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 20 | + | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
29 | 25 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 26 | + | |
| 27 | + | |
33 | 28 | | |
34 | 29 | | |
35 | | - | |
| 30 | + | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 50 | + | |
58 | 51 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 52 | + | |
| 53 | + | |
62 | 54 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 55 | + | |
| 56 | + | |
69 | 57 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 58 | + | |
77 | 59 | | |
78 | 60 | | |
79 | | - | |
80 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments