Update .gitea/workflows/deploy.yml
All checks were successful
Build and Deploy Svelte App / build-and-deploy (push) Successful in 1m20s
All checks were successful
Build and Deploy Svelte App / build-and-deploy (push) Successful in 1m20s
This commit is contained in:
parent
622ecadba0
commit
47e027edc9
@ -1,4 +1,3 @@
|
||||
|
||||
name: Build and Deploy Svelte App
|
||||
|
||||
on:
|
||||
@ -32,15 +31,14 @@ jobs:
|
||||
npm run build
|
||||
|
||||
# Deploy the build to your server (e.g., using SCP, Rsync, or FTP)
|
||||
- name: Deploy to Strato.de (SFTP example)
|
||||
- name: Deploy to Provider
|
||||
run: |
|
||||
sudo apt-get update # Update package list
|
||||
sudo apt-get install -y sshpass # Install sshpass for non-interactive SFTP
|
||||
echo "putting files to Strato server"
|
||||
sshpass -p "$DEPLOY_PASSWORD" sftp -o StrictHostKeyChecking=no "$DEPLOY_USER@$DEPLOY_SERVER:/" <<EOF
|
||||
cd /path/to/your/website # Change to the directory where you want to upload files
|
||||
put -r build/* # Upload the contents of the build folder
|
||||
exit # Close the SFTP session
|
||||
put -r build/*
|
||||
exit
|
||||
EOF
|
||||
env:
|
||||
DEPLOY_PASSWORD: ${{ secrets.STRATO_PASSWORD }} # Add your deployment password to secrets
|
||||
|
Loading…
x
Reference in New Issue
Block a user