From f40a3fbf6cb8204f95041099980ea74811514bda Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Tue, 9 Jan 2024 23:36:38 +0000 Subject: [PATCH] Add deploy step --- .build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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