It should work
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 1m33s

This commit is contained in:
2026-03-11 19:29:51 +01:00
parent 087ae47e97
commit c8d9ecd9cc

View File

@@ -30,8 +30,8 @@ jobs:
- name: Deploy to server
run: |
scp build.tar.gz deploy@aranroig.deploy:/tmp/
ssh deploy@aranroig.deploy << 'EOF'
scp -i ${{ secrets.DEPLOY_KEY_LOCATION }} build.tar.gz deploy@${{ secrets.DEPLOY_HOST }}:/tmp/
ssh -i ${{ secrets.DEPLOY_KEY_LOCATION }} deploy@{{ secrets.DEPLOY_HOST }} << 'EOF'
rm -rf /var/www/app/.output
tar -xzf /tmp/build.tar.gz -C /var/www/app
sudo systemctl restart app