2 # Copyright (c) Meta Platforms, Inc. and affiliates.
4 # This source code is licensed under the MIT license found in the
5 # LICENSE file in the root directory of this source tree.
7 # stop running if any of these steps fail
9 WATCHMAN
=$
(hg root
)/fbcode
/watchman
11 if test ! -d /tmp
/watchman-gh-pages
; then
12 git clone
-b gh-pages git@github.com
:facebook
/watchman.git
/tmp
/watchman-gh-pages
14 cd /tmp
/watchman-gh-pages
19 git rebase origin
/gh-pages
20 cd "$WATCHMAN/oss/website"
21 docker run
--volume "$PWD:/srv/jekyll" --volume "/tmp/watchman-gh-pages:/tmp/jekyll-out" --rm jekyll
/jekyll
:3 jekyll build
-d /tmp
/jekyll-out
23 cd /tmp
/watchman-gh-pages
25 git commit
-m "update website"
26 git push origin gh-pages