Fix deploy and use ci branch for now
Some checks reported errors
builds.sr.ht Job failed

This commit is contained in:
2024-01-10 00:55:25 +00:00
parent 24c6700f73
commit 3f26bb457e

View File

@@ -16,12 +16,11 @@ tasks:
cd wish cd wish
mix test mix test
- deploy: | - deploy: |
if [ $GIT_REF = "main" ]; then if [ $GIT_REF = "refs/heads/ci" ]; then
curl -L https://fly.io/install.sh | sh curl -L https://fly.io/install.sh | sh
export FLYCTL_INSTALL="/root/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"
cd wish cd wish
fly deploy /root/.fly/flyctl deploy
else else
echo "nothing to do" echo "nothing to do"
fi fi