scripts: add website_push_docs
This commit is contained in:
parent
3e995f6565
commit
edc6d71682
12
scripts/website_push_docs.sh
Executable file
12
scripts/website_push_docs.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 )"
|
||||
|
||||
# Change into that directory
|
||||
cd $DIR
|
||||
|
||||
# Push the subtree (force)
|
||||
git push heroku-docs `git subtree split --prefix website/docs master`:master --force
|
||||
Loading…
x
Reference in New Issue
Block a user