Skip to content

Commit 4f4e4f3

Browse files
te6-inclaude
andcommitted
fix(ci): persist Figma image cache when skip-figma-cache is used
Split actions/cache into separate restore/save steps so that fresh Figma images fetched with skip-figma-cache are saved for subsequent builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c765022 commit 4f4e4f3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/deploy-seed-design-docs-alpha-pages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Restore Figma image cache
4545
if: ${{ !inputs.skip-figma-cache }}
46-
uses: actions/cache@v5
46+
uses: actions/cache/restore@v5
4747
with:
4848
path: docs/.cache/figma-image
4949
key: ${{ runner.os }}-figma-images-${{ hashFiles('docs/**/*.mdx') }}
@@ -73,6 +73,12 @@ jobs:
7373
run: |
7474
bun run build
7575
76+
- name: Save Figma image cache
77+
uses: actions/cache/save@v5
78+
with:
79+
path: docs/.cache/figma-image
80+
key: ${{ runner.os }}-figma-images-${{ hashFiles('docs/**/*.mdx') }}
81+
7682
- name: Deploy docs at Cloudflare Pages in `seed-design-v3` project (Alpha)
7783
id: deploy
7884
uses: cloudflare/wrangler-action@v3

.github/workflows/deploy-seed-design-docs-prod-pages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Restore Figma image cache
4747
if: ${{ !inputs.skip-figma-cache }}
48-
uses: actions/cache@v5
48+
uses: actions/cache/restore@v5
4949
with:
5050
path: docs/.cache/figma-image
5151
key: ${{ runner.os }}-figma-images-${{ hashFiles('docs/**/*.mdx') }}
@@ -75,6 +75,12 @@ jobs:
7575
run: |
7676
bun run build
7777
78+
- name: Save Figma image cache
79+
uses: actions/cache/save@v5
80+
with:
81+
path: docs/.cache/figma-image
82+
key: ${{ runner.os }}-figma-images-${{ hashFiles('docs/**/*.mdx') }}
83+
7884
- name: Deploy docs at Cloudflare Pages in `seed-design-v3` project (Production)
7985
run: |
8086
CLOUDFLARE_ACCOUNT_ID=${{ secrets.CF_ACCOUNT_ID }} \

0 commit comments

Comments
 (0)