Skip to content

Commit

Permalink
Merge pull request facebook#23 from wincent/simplify-website-publish
Browse files Browse the repository at this point in the history
Clean up website/publish.sh script
  • Loading branch information
fisherwebdev committed Aug 22, 2014
2 parents f965736 + 6f09fbf commit 5dbbdeb
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions website/publish.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/bash

set -e

# Start in website/ even if run from root directory
cd "$(dirname "$0")"

cd ../../flux-gh-pages && \
git checkout -- . && \
git clean -dfx && \
git fetch && \
git rebase && \
rm -Rf * && \
cd ../flux/website && \
node server/generate.js && \
cp -R build/flux/* ../../flux-gh-pages/ && \
rm -Rf build/ && \
cd ../../flux-gh-pages && \
git add --all && \
git commit -m "update website" && \
git push && \
cd ../../flux-gh-pages
git checkout -- .
git clean -dfx
git fetch
git rebase
rm -Rf *
cd ../flux/website
node server/generate.js
cp -R build/flux/* ../../flux-gh-pages/
rm -Rf build/
cd ../../flux-gh-pages
git add --all
git commit -m "update website"
git push
cd ../flux/website

0 comments on commit 5dbbdeb

Please sign in to comment.