Sha256: 0de17c55f75b7c6f662c91755df85e6d6d6386dae8f13cd878633de05c22d739
Contents?: true
Size: 800 Bytes
Versions: 4
Compression:
Stored size: 800 Bytes
Contents
#!/bin/bash set -e URL=$1 SRC=$(pwd) TEMP=$(mktemp -d -t jgd-XXX) trap "rm -rf ${TEMP}" EXIT CLONE=${TEMP}/clone echo -e "Cloning Github repository:" git clone "${URL}" "${CLONE}" echo -e "\nBuilding Jekyll site:" cd "${CLONE}" rm -rf _site jekyll build cp -R _site ${TEMP} echo -e "\nPreparing gh-pages branch:" if [ -z "$(git branch -a | grep origin/gh-pages)" ]; then git checkout --orphan gh-pages else git checkout gh-pages fi echo -e "\nDeploying into gh-pages branch:" rm -rf * cp -R ${TEMP}/_site/* . rm README.md git add . git config user.email "jgd@teamed.io" git config user.name "jekyll-github-deploy" git commit -am "new site version deployed" --allow-empty git push origin gh-pages 2>&1 | sed 's|'$URL'|[skipped]|g' echo -e "\nCleaning up:" rm -rf "${CLONE}" rm -rf "${SITE}"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jgd-1.3.1 | bash/deploy.sh |
jgd-1.3 | bash/deploy.sh |
jgd-1.2 | bash/deploy.sh |
jgd-1.1 | bash/deploy.sh |