diff --git a/.build.yml b/.build.yml index f7a0bcd..3b3c058 100644 --- a/.build.yml +++ b/.build.yml @@ -15,3 +15,13 @@ tasks: - test: | cd wish mix test + - deploy: | + if [ $GIT_REF="main" ]; then + curl -L https://fly.io/install.sh | sh + export FLYCTL_INSTALL="/root/.fly" + export PATH="$FLYCTL_INSTALL/bin:$PATH" + cd wish + fly deploy + else + echo "nothing to do" + fi