Skip to content

Commit

Permalink
Enable deploy preview if changes are detected in docs. (#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
ailzhang authored Sep 11, 2021
1 parent 36d9590 commit 538dcee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
command = "git clone https://github.com/taichi-dev/docs.taichi.graphics.git; rm -rf docs.taichi.graphics/website/docs/lang; cp -rf docs/lang docs.taichi.graphics/website/docs/lang; cd docs.taichi.graphics/website; npm install --global [email protected]; yarn install; yarn build"

publish = "docs.taichi.graphics/website/build"

# Cancel the build if there're no changes detected in docs/ folder.
ignore = "git remote add upstream https://github.com/taichi-dev/taichi.git; git fetch upstream master; git diff --quiet $COMMIT_REF upstream/master -- docs/"

0 comments on commit 538dcee

Please sign in to comment.