ci: fix deploy branch check again, exclude config.json

This commit is contained in:
Simon Ser 2021-11-17 10:45:18 +01:00
parent debd50f482
commit 3f2553291f

View file

@ -13,6 +13,7 @@ tasks:
npm run build
- deploy: |
cd gamja/dist
[ "$(git branch --show-current)" = "master" ] || complete-build
[ "$(git rev-parse HEAD)" = "$(git rev-parse master)" ] || complete-build
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
--delete --delete-excluded . deploy@emersion.fr:/srv/http/gamja
--delete --exclude=config.json \
. deploy@emersion.fr:/srv/http/gamja