Skip to content

Commit

Permalink
Add lfs to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasBora committed Nov 9, 2021
1 parent a43aa80 commit 537ef79
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
lfs: true
# Some big files are added using lfs (make sure to run "git lfs install" to configure the hooks properly)
# Then you can "git lfs track yourfile" (maybe do it only from the root to have ".gitattribute" in the
# root folder. But guess it's not mandatory.)
# then "git add yourfile"/"git push" as usual.
# If git lfs is installed, I think lfs are automatically pulled. Otherwise, install it and run
# "git lfs pull" (git lfs checkout does not download the files, see git lfs fetch for that).
- name: Checkout LFS objects
run: git lfs checkout
- uses: cachix/install-nix-action@v14
with:
nix_path: nixpkgs=channel:nixos-unstable
Expand Down

0 comments on commit 537ef79

Please sign in to comment.