Skip to content

Commit

Permalink
Merge pull request #263 from Exabyte-io/feat/SOF-7176-2
Browse files Browse the repository at this point in the history
SOF-7176: add netlify custom build script
  • Loading branch information
timurbazhirov authored Dec 20, 2023
2 parents 1a09c2e + 996ea43 commit a5dd5b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "bash ./scripts/setup-ubuntu.sh && mkdocs build"
command = "bash ./scripts/netlify-build.sh"
publish = "site/"

[build.environment]
Expand Down
10 changes: 10 additions & 0 deletions scripts/netlify-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
git submodule update --recursive --init
git lfs install
git lfs pull
# git LFS objects can alternatively be handled via environmental variables
# GIT_LFS_ENABLED=true and GIT_LFS_FETCH_INCLUDE
# https://answers.netlify.com/t/problem-checking-out-file-stored-in-git-lfs-on-github/103897/7

# pip packages are automatically installed by netlify
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
mkdocs build

0 comments on commit a5dd5b6

Please sign in to comment.