Skip to content

Commit

Permalink
Merge pull request #56 from WISVCH/better-lfs-caching
Browse files Browse the repository at this point in the history
Improve the caching of LFS objects to reduce the bandwith usage.
  • Loading branch information
mpsijm committed Apr 5, 2024
2 parents c47d077 + e404977 commit ff13af9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
uses: actions/checkout@v4
with:
submodules: recursive
lfs: false
- name: Create LFS file list
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
- name: LFS Cache
uses: actions/cache@v4
with:
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: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions static/schedule/schedule-fpc-24.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff13af9

Please sign in to comment.