mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-12 09:08:12 +08:00
23 lines
491 B
Bash
Executable File
23 lines
491 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
|
|
|
|
rm -rf 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 "bot@travis-ci.org"
|
|
|
|
git add -A .
|
|
git commit -m "Deploy documentation: $(git rev-parse --verify HEAD)"
|
|
|
|
git push -f -u origin master
|