ci: fix deploy branch check again, exclude config.json
This commit is contained in:
1 parent
debd50f482
commit
3f2553291f
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
Reference in new issue
Block a user