From 0da14859750731f94c9de8b17787d4352c9cb1ca Mon Sep 17 00:00:00 2001 From: Blue Date: Wed, 3 Nov 2021 00:27:02 +0100 Subject: [PATCH] Revert "general: remove lfs steps from build workflow" This reverts commit bd4e3507b2779c53bf8d9dc62ba95a75ae3901e2 [formerly 83a510263b9a321790cb60313f7a0e37a65c89b1]. Former-commit-id: bbc0995567c1730cb735fc1f0ba2bba4ea66b3ff --- .github/workflows/build-deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 22b907b0..3b4443ac 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -18,6 +18,19 @@ jobs: with: submodules: recursive + - 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: + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull + - name: Extract version id: version shell: bash @@ -55,6 +68,19 @@ jobs: with: submodules: recursive + - 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: + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull + - name: Extract version id: version shell: bash