Commit 96ef0f4
committed
ci(docs): fix stale cache key and add PR build artifact
The doc build cache key only hashed examples/**/*.py, doc/**/*, and
conf.py. A change to library code under eegnb/ (e.g. #330) still
counts as a 'full build' per the earlier changed-files check, but the
cache step restores the same doc/_build/html as before since its key
is unchanged, and sphinx-gallery skips re-running any example script
that itself is unchanged. Net effect: CI can report success without
ever re-rendering the affected example.
Also there was no way to see a PR's doc build without checking it out
and building locally - docs.yml only publishes to GitHub Pages on
push to master. Upload the built HTML as a workflow artifact on every
run so reviewers can download and open it directly from the PR's
checks tab.1 parent 152e40a commit 96ef0f4
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
| |||
0 commit comments