mirror of https://github.com/docker/compose.git
Just deploy the _site directory to gh-pages
This commit is contained in:
parent
f60621ee1b
commit
db396b81ef
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
pushd docs
|
pushd docs/_site
|
||||||
|
|
||||||
export GIT_DIR=.git-gh-pages
|
export GIT_DIR=.git-gh-pages
|
||||||
export GIT_WORK_TREE=.
|
export GIT_WORK_TREE=.
|
||||||
|
@ -15,8 +15,7 @@ if !(git remote | grep origin); then
|
||||||
git remote add origin git@github.com:orchardup/fig.git
|
git remote add origin git@github.com:orchardup/fig.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp .gitignore-gh-pages .gitignore
|
echo ".git-gh-pages" > .gitignore
|
||||||
echo ".git-gh-pages" >> .gitignore
|
|
||||||
|
|
||||||
git add -u
|
git add -u
|
||||||
git add .
|
git add .
|
||||||
|
@ -24,6 +23,4 @@ git add .
|
||||||
git commit -m "update" || echo "didn't commit"
|
git commit -m "update" || echo "didn't commit"
|
||||||
git push -f origin master:gh-pages
|
git push -f origin master:gh-pages
|
||||||
|
|
||||||
rm .gitignore
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in New Issue