ci: fix deploy branch check

This commit is contained in:
Simon Ser 2021-11-17 10:33:16 +01:00
parent a57428002f
commit debd50f482

View file

@ -12,7 +12,7 @@ tasks:
npm install --include=dev npm install --include=dev
npm run build npm run build
- deploy: | - deploy: |
[ "$(git branch --show-current)" = "master" ] || complete-build
cd gamja/dist cd gamja/dist
[ "$(git branch --show-current)" = "master" ] || complete-build
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \ rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
--delete --delete-excluded . deploy@emersion.fr:/srv/http/gamja --delete --delete-excluded . deploy@emersion.fr:/srv/http/gamja