Sha256: 681c36e978064895d3292d3fa7c0ac8a72d3aa8ce9565287e27273cfda57ed42

Contents?: true

Size: 893 Bytes

Versions: 50

Compression:

Stored size: 893 Bytes

Contents

#!/bin/bash

# Set the tmpdir
if [ -z "$TMPDIR" ]; then
  TMPDIR="/tmp"
fi

# Create a temporary build dir and make sure we clean it up. For
# debugging, comment out the trap line.
DEPLOY=`mktemp -d /tmp/vagrant-docs-XXXXXX`
trap "rm -rf $DEPLOY" INT TERM EXIT

# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

# Copy into tmpdir
shopt -s dotglob
cp -R $DIR/website/docs/* $DEPLOY/

# Change into that directory
cd $DEPLOY

# Ignore some stuff
touch .gitignore
echo ".sass-cache" >> .gitignore
echo "build" >> .gitignore
echo "vendor" >> .gitignore

# Add everything
git init .
git add .
git commit -q -m "Deploy by $USER"

git remote add heroku git@heroku.com:vagrantup-docs-2.git
git push -f heroku master

# Cleanup the deploy
rm -rf $DEPLOY

Version data entries

50 entries across 46 versions & 5 rubygems

Version Path
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/scripts/website_push_docs.sh
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/scripts/website_push_docs.sh
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/scripts/website_push_docs.sh
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/scripts/website_push_docs.sh
vagrant-unbundled-1.8.5.2 scripts/website_push_docs.sh
vagrant-unbundled-1.8.5.1 scripts/website_push_docs.sh
vagrant-unbundled-1.8.4.2 scripts/website_push_docs.sh
vagrant-unbundled-1.8.4.1 scripts/website_push_docs.sh
vagrant-unbundled-1.8.1.2 scripts/website_push_docs.sh
vagrant-unbundled-1.8.1.1 scripts/website_push_docs.sh