Skip to content

Commit

Permalink
chore: Add actions/cache to cache LFS files
Browse files Browse the repository at this point in the history
  • Loading branch information
riceball-tw authored Feb 18, 2024
1 parent 77578f2 commit 359545f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pages-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create LFS file list
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
- name: LFS Cache
uses: actions/cache@v3
with:
lfs: true
path: .git/lfs/objects
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
restore-keys: |
${{ runner.os }}-lfs-
- name: Git LFS Pull
run: git lfs pull
- name: install packages and build
run: |
npm install
Expand Down

0 comments on commit 359545f

Please sign in to comment.