Commit 1801b8a
committed
fix(ci/docs): Separate build and deploy jobs for documentation
Refactor the GitHub Pages documentation workflow to explicitly separate the build and deployment phases into distinct jobs.
Previously, both build and deploy steps were part of a single `docs` job. This change introduces a dedicated `build` job to generate the MkDocs site and upload it as an artifact, and a `deploy` job to download this artifact and publish it to GitHub Pages.
This separation improves:
- **Clarity and maintainability:** Clearly delineates responsibilities for building versus deploying.
- **Robustness:** Ensures that the deployment logic, including the `if` condition for the `main` branch, is applied at the job level, preventing unintended deployments or permission issues.
- **Best practices:** Aligns with recommended GitHub Pages deployment patterns using `actions/configure-pages` and `actions/deploy-pages`.
This enhances the reliability and structure of the documentation deployment process.1 parent 375fca4 commit 1801b8a
1 file changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
22 | 19 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
30 | 24 | | |
31 | | - | |
| 25 | + | |
| 26 | + | |
32 | 27 | | |
| 28 | + | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | | - | |
46 | 56 | | |
47 | 57 | | |
0 commit comments