Update .gitea/workflows/deploy.yml
Some checks failed
Deploy to Production / deploy (push) Failing after 6s

This commit is contained in:
2025-09-27 07:56:28 -05:00
parent de007cdf65
commit 1cd834b00f

View File

@@ -16,6 +16,10 @@ jobs:
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
script: | script: |
# Clone repo if it doesn't exist
if [ ! -d "/var/www/caloriethingy.com/.git" ]; then
git clone https://git.sometimescode.com/cgsmith/caloriethingy.com.git /var/www/caloriethingy.com
fi
cd /var/www/caloriethingy.com cd /var/www/caloriethingy.com
git pull origin main git pull origin main
composer install --no-dev --optimize-autoloader composer install --no-dev --optimize-autoloader