bash/deploy.sh in jgd-1.6 vs bash/deploy.sh in jgd-1.6.1

- old
+ new

@@ -7,25 +7,12 @@ trap "rm -rf ${TEMP}" EXIT CLONE=${TEMP}/clone echo -e "Cloning Github repository:" git clone "${URL}" "${CLONE}" - -echo -e "\nRegistering variables:" cd "${CLONE}" -USER_EMAIL=$(git config --get user.email | cat) -USER_NAME=$(git config --get user.name | cat) -echo "user.name=${USER_NAME}" -echo "user.email=${USER_EMAIL}" -if [ "${USER_EMAIL}" = "" -o "${USER_NAME}" = "" ]; then - echo "user.email or user.name is not configured in Git repository" - echo "see https://help.github.com/articles/setting-your-email-in-git/" - exit -1 -fi -VERSION=$(git describe --always --tag) - echo -e "\nBuilding Jekyll site:" rm -rf _site if [ -r _config-deploy.yml ]; then jekyll build --config _config.yml,_config-deploy.yml @@ -50,12 +37,10 @@ echo -e "\nDeploying into gh-pages branch:" rm -rf * cp -R ${TEMP}/_site/* . rm -f README.md git add . -git config user.email "${USER_EMAIL}" -git config user.name "${USER_NAME}" -git commit -am "new site version ${VERSION} deployed" --allow-empty +git commit -am "new version $(date)" --allow-empty git push origin gh-pages 2>&1 | sed 's|'$URL'|[skipped]|g' echo -e "\nCleaning up:" rm -rf "${CLONE}" rm -rf "${SITE}"