Skip to content

Commit c3d1c81

Browse files
committed
ci: checkout LFS files from previous version to ensure upload
1 parent bfcea60 commit c3d1c81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci_cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ jobs:
493493
$env:PREVIOUS_PATCH_VERSION_NUMBER=$env:VERSION.substring($env:VERSION.Length - 1)
494494
$env:PREVIOUS_PATCH_VERSION_NUMBER=[int]$env:PREVIOUS_PATCH_VERSION_NUMBER - 1
495495
$env:PREVIOUS_VERSION=$env:PREVIOUS_VERSION + $env:PREVIOUS_PATCH_VERSION_NUMBER
496+
# Fetch the LFS files from the previous version
497+
git lfs fetch origin --include="$env:PREVIOUS_VERSION/*"
498+
git lfs checkout $env:PREVIOUS_VERSION
499+
# Copy the binaries from the previous version
496500
cp ./$env:PREVIOUS_VERSION/windows-binaries.zip windows-binaries.zip
497501
cp ./$env:PREVIOUS_VERSION/linux-binaries.zip linux-binaries.zip
498502

0 commit comments

Comments
 (0)