Add deploy step
All checks were successful
builds.sr.ht Job completed

This commit is contained in:
2024-01-09 23:36:38 +00:00
parent 0a308ea429
commit 24c6700f73

View File

@@ -15,3 +15,13 @@ tasks:
- test: | - test: |
cd wish cd wish
mix test 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