fix(build): Fix git branch name conditional

master
Nick Zana 2 years ago
parent f9a0760178
commit 97d9c37b30
No known key found for this signature in database
GPG Key ID: 936524EE913D6538

@ -14,7 +14,7 @@ tasks:
- deploy: | - deploy: |
cd blog cd blog
# only deploy when on master branch # only deploy when on master branch
if [ "$(git rev-parse --abbrev-ref HEAD)" == "master" ]; then if [ "$(git rev-parse master)" == "$(git rev-parse HEAD)" ]; then
sshopts="ssh -p 221 -o StrictHostKeyChecking=no" sshopts="ssh -p 221 -o StrictHostKeyChecking=no"
openrsync --rsh="$sshopts" --delete -r public $deploy openrsync --rsh="$sshopts" --delete -r public $deploy
else else

Loading…
Cancel
Save