Skip to content

Commit

Permalink
Updated deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
LucF120 committed Jun 6, 2024
1 parent 01d9386 commit c3353fe
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to cPanel
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
- 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/ wjuhsh6x6mmj@ftp.lucferrara.com:/home/wjuhsh6x6mmj/public_html/
env:
SSH_KNOWN_HOSTS: ftp.lucferrara.com

0 comments on commit c3353fe

Please sign in to comment.