@@ -342,16 +342,16 @@ jobs:
342342 find deploy-staging -type f | head -20
343343
344344 # ========================================================================
345- # UPLOAD STAGING ARTIFACTS
345+ # CACHE STAGING ARTIFACTS
346346 # ========================================================================
347- # Upload only the NEW artifacts in their branch structure .
348- # The deploy job will handle merging with existing versions on gh-pages .
347+ # Cache the staging folder for use in deploy job .
348+ # This avoids artifact storage overhead (saves ~1.8GB) .
349349 # ========================================================================
350- - name : Upload staged artifacts
351- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
350+ - name : Cache staged artifacts
351+ uses : actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 .0.4
352352 with :
353- name : staged-documentation-${{ steps.branch.outputs.branch_name }}
354353 path : deploy-staging/
354+ key : staged-docs-${{ github.sha }}
355355
356356 # ========================================================================
357357 # VALIDATION: CHECK FOR BROKEN LINKS (NEW CONTENT IN FULL CONTEXT)
@@ -434,11 +434,12 @@ jobs:
434434 fetch-depth : 1
435435 persist-credentials : false
436436
437- - name : Download staged artifacts
438- uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
437+ - name : Restore staged artifacts from cache
438+ uses : actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 .0.4
439439 with :
440- name : staged-documentation-${{ needs.stage-and-check.outputs.branch_name }}
441440 path : stage/
441+ key : staged-docs-${{ github.sha }}
442+ fail-on-cache-miss : true
442443
443444 # ========================================================================
444445 # APPLY STAGED ARTIFACTS TO GH-PAGES
0 commit comments