Files
react-native-paper/docs/deploy.sh
2016-11-22 05:14:13 +05:30

21 lines
467 B
Bash
Executable File

#!/bin/bash
set -e
git clone https://${GITHUB_TOKEN}@github.com/react-native-paper/react-native-paper.github.io.git docs/dist
cd docs && npm run build && cd dist
if [ -z "$(git diff --exit-code)" ]; then
echo "No changes to the output on this push; exiting."
exit 0
fi
git config user.name "Travis CI"
git config user.email "nobody@nobody.org"
git add .
git commit -m "Deploy documentation: $(git rev-parse --verify HEAD)"
git push -f -u origin master