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 c3f0fb30bb

View File

@@ -15,3 +15,13 @@ tasks:
- test: |
cd wish
mix test
- deploy: |
if [ $GIT_REF -eq "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