Skip to content

Commit

Permalink
CI/CD Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
chisa-dev authored Jan 3, 2025
1 parent 2ff5396 commit 9a4789a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 31 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy_to_cpanel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to cPanel

on:
push:
branches: [ "main" ]

jobs:
deploy:
name: Deploy api
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Deploy the application to the cPanel server via FTP
- name: Deploy to cPanel
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./ # Directory to upload
server-dir: / # Remote directory
protocol: ftps # Use FTPS
timeout: 600000 # Set a high timeout for large projects
log-level: verbose
31 changes: 0 additions & 31 deletions .github/workflows/node.js.yml

This file was deleted.

0 comments on commit 9a4789a

Please sign in to comment.