Skip to content

Commit 7b2939c

Browse files
committed
use the rtd-recommended git-lfs checkout step
1 parent 54ad831 commit 7b2939c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.readthedocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ build:
55
tools:
66
python: "3.10"
77
commands:
8+
# from https://docs.readthedocs.com/platform/stable/build-customization.html#support-git-lfs-large-file-storage
9+
# Download and uncompress the binary
10+
# https://git-lfs.github.com/
11+
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.1.4/git-lfs-linux-amd64-v3.1.4.tar.gz
12+
- tar xvfz git-lfs-linux-amd64-v3.1.4.tar.gz git-lfs
13+
# Modify LFS config paths to point where git-lfs binary was downloaded
14+
- git config filter.lfs.process "`pwd`/git-lfs filter-process"
15+
- git config filter.lfs.smudge "`pwd`/git-lfs smudge -- %f"
16+
- git config filter.lfs.clean "`pwd`/git-lfs clean -- %f"
17+
# Make LFS available in current repository
18+
- ./git-lfs install
19+
# Download content from remote
20+
- ./git-lfs fetch
21+
# Make local files to have the real content on them
22+
- ./git-lfs checkout
823
- asdf plugin add pixi
924
- asdf install pixi latest
1025
- asdf global pixi latest

0 commit comments

Comments
 (0)