Skip to content

Commit

Permalink
fix: issue with deplopy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tichau committed Feb 16, 2024
1 parent 62abf20 commit 8d53f6a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,18 @@ then
fi

echo "Copy files..."
find $deployDir -type f -not -name 'CNAME' -delete
find $deployDir -type f -not -name '.git' -not -name 'CNAME' -not -path '*/[@.]*' -delete
cp -r dist/browsify/** $deployDir

echo "Push to server..."
echo "Push to deploy branch..."
git --git-dir=$deployDir/.git --work-tree=$deployDir add .
git --git-dir=$deployDir/.git --work-tree=$deployDir commit -m "Deploy v$newVersion"
git --git-dir=$deployDir/.git --work-tree=$deployDir push origin $deployBranch
if [ $? != 0 ]
then
>&2 echo "Failed to push to deploy branch."
exit 3
fi

echo "Clean temporary repository..."
rm -rf $deployDir
Expand Down

0 comments on commit 8d53f6a

Please sign in to comment.