Skip to content

Commit

Permalink
Use filename cache also in gh-pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
minevala committed Jun 14, 2021
1 parent 2c71324 commit 677cc18
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id

- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
lfs: true

- name: Checkout LFS objects
run: git lfs checkout
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1

- name: Git LFS Pull
run: git lfs pull

- name: setup node
uses: actions/[email protected]
Expand Down

0 comments on commit 677cc18

Please sign in to comment.