Skip to content

Fixed passkey

Fixed passkey #11

Workflow file for this run

name: Deploy to cPanel
on:
push:
branches:
- main # Adjust the branch as needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Sync files to cPanel
run: |
rsync -avz --delete --exclude '.git*' ./public_html/ ${{ secrets.FTP_USERNAME }}@${{ secrets.FTP_SERVER }}:/home/${{ secrets.FTP_USERNAME }}/public_html/
env:
SSH_KNOWN_HOSTS: ftp.lucferrara.com