Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJitianu authored Dec 19, 2017
1 parent 135290d commit 9e6c1e2
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,16 @@ REPONAME=`basename $PWD`
PARENTDIR=`dirname $PWD`
USERNAME=`basename $PARENTDIR`

mkdir deploy
cd deploy

echo "Initialize repository"

git init
git config user.name "AlexJitianu";
git config user.email "alex_jitianu@oxygenxml.com";

echo "Link with https://$GH_TOKEN@github.com/$USERNAME/$REPONAME.git"
echo "Check out https://$GH_TOKEN@github.com/$USERNAME/$REPONAME.git"

git remote add upstream "https://$GH_TOKEN@github.com/$USERNAME/$REPONAME.git"
git fetch upstream
git reset upstream/master
git clone "https://$GH_TOKEN@github.com/$USERNAME/$REPONAME.git"
cd $REPONAME

cp -f ../target/update_site.xml build;

ls
git status

git add build/update_site.xml;
git commit -m "New addon release - ${TRAVIS_TAG}";
git push -q upstream HEAD:master;
git push

0 comments on commit 9e6c1e2

Please sign in to comment.