Skip to content

Commit

Permalink
ci: always save image cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Feb 5, 2025
1 parent 5645f09 commit 943e694
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
node-version: 22
- name: Install pnpm
run: corepack enable
- name: Setup image cache
uses: actions/cache@v4
- name: Restore image cache
id: image-restore
uses: actions/cache/restore@v4
with:
path: public/img/
key: image
Expand All @@ -60,6 +61,12 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Always save cache
if: always() && steps.image-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: public/img/
key: image

deploy:
name: Deploy the Pages
Expand Down

0 comments on commit 943e694

Please sign in to comment.