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-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh
vagrant-unbundled-2.1.1.0 scripts/website_push_docs.sh
vagrant-unbundled-2.0.4.0 scripts/website_push_docs.sh
vagrant-unbundled-2.0.3.0 scripts/website_push_docs.sh
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/scripts/website_push_docs.sh
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/scripts/website_push_docs.sh
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/scripts/website_push_docs.sh
vagrant-unbundled-2.0.2.0 scripts/website_push_docs.sh
vagrant-unbundled-2.0.1.0 scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/scripts/website_push_docs.sh
vagrant-unbundled-2.0.0.1 scripts/website_push_docs.sh
vagrant-unbundled-1.9.8.1 scripts/website_push_docs.sh
vagrant-unbundled-1.9.7.1 scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/scripts/website_push_docs.sh
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/scripts/website_push_docs.sh
vagrant-unbundled-1.9.5.1 scripts/website_push_docs.sh
vagrant-unbundled-1.9.1.1 scripts/website_push_docs.sh