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-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/scripts/website_push_docs.sh
vagrant-unbundled-2.2.10.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.9.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.8.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.7.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.6.2 scripts/website_push_docs.sh
vagrant-unbundled-2.2.6.1 scripts/website_push_docs.sh
vagrant-unbundled-2.2.6.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.5.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.4.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.3.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.2.0 scripts/website_push_docs.sh
vagrant-unbundled-2.2.0.0 scripts/website_push_docs.sh
vagrant-unbundled-2.1.4.0 scripts/website_push_docs.sh
vagrant-unbundled-2.1.2.0 scripts/website_push_docs.sh
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/scripts/website_push_docs.sh