fix: sshpass not found
Some checks failed
Build and Deploy Svelte App / build-and-deploy (push) Failing after 1m1s

This commit is contained in:
itsscb 2025-04-09 23:34:25 +02:00
parent 9bca0f01d2
commit c2f587eebf

View File

@ -34,7 +34,8 @@ jobs:
# Deploy the build to your server (e.g., using SCP, Rsync, or FTP)
- name: Deploy to Strato.de (SFTP example)
run: |
sudo apt-get install -y sshpass # Install sshpass for non-interactive SSH authentication
sudo apt-get update # Update package list
sudo apt-get install -y sshpass # Install sshpass
sshpass -p "$DEPLOY_PASSWORD" scp -r build/* "$DEPLOY_USER@$DEPLOY_SERVER:/"
env:
DEPLOY_PASSWORD: ${{ secrets.STRATO_PASSWORD }} # Add your deployment password to secrets