#!/bin/sh set -e [ -n "$DEBUG" ] && set -x echo "👀 Fetching git repository information…" git fetch origin --quiet CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) echo "🚀 Deploying ${CURRENT_BRANCH} to staging !" git branch -f staging git push --force origin staging bundle exec cap staging deploy echo "😎 Done !"