Skip remote creation step and push directly to host alias

This commit is contained in:
Josh Mize 2019-04-26 15:24:26 -05:00
Родитель 48812a547b
Коммит 53d9442ad2
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -11,9 +11,5 @@ git add release
git commit -m "Generated from $GIT_COMMIT"
# create a new branch named 'gh-pages-$GIT_COMMIT' with only the code from the /release folder
git subtree split --prefix release -b gh-pages-$GIT_COMMIT
# add github-mozmar-robot remote if it doesn't exist
if [[ ! $(git remote) =~ github-mozmar-robot ]]; then
git remote add github-mozmar-robot github-mozmar-robot:mozilla/awebpodcast
fi
# push our bespoke branch to the gh-pages branch
git push -f github-mozmar-robot gh-pages-$GIT_COMMIT:gh-pages
# push our bespoke branch to the gh-pages branch using the github-mozmar-robot host defined in ~/.ssh/config
git push -f github-mozmar-robot:mozilla/awebpodcast gh-pages-$GIT_COMMIT:gh-pages