Ajout d'un script de deploy

This commit is contained in:
Anthony Dumas 2019-10-13 14:36:36 +00:00
parent c28440e637
commit a6a573dfeb

12
deploy.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $BASE ]; then
git stash
git pull
npm install
fi