~allie/website-2020 unlisted

90c38cf11729f8f261438041d917e1911773eb48 — Alfie Pates 6 months ago 461eaa3
let's not use an explicit deploy branch, because that doesn't seem to work
1 files changed, 4 insertions(+), 4 deletions(-)

M .build.yml
M .build.yml => .build.yml +4 -4
@@ 18,10 18,10 @@ tasks:
                pipenv run make publish
        - deploy: |
                cd website-2020
                # Let's only do this if we're on the deploy branch
                if [ "$(git rev-parse HEAD)" != "$(git rev-parse deploy)" ]; then \
                        echo "Skipping, we're not on the deploy branch"; complete-build; \
                # Let's only do this if we're on master
                if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \
                        echo "Skipping, we're not on master"; complete-build; \
                fi
                echo "We're on the right branch, deploying" 
                echo "We're on master, deploying" 
                sshopts="ssh -o StrictHostKeyChecking=no"
                rsync --rsh="$sshopts" -r --quiet --delete-after output/* $deploy_user@$deploy_host:$deploy_dir