Skip to content

Commit

Permalink
CI/CD Workflow Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
chisa-dev authored Jan 28, 2025
1 parent 4c8bcd9 commit 5ad197f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/deploy_to_cpanel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,28 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Deploy the application to the cPanel server via FTP
- name: Deploy to cPanel
# Step 2: Deploy the application to the root directory on the cPanel server via FTP
- name: Deploy to root directory
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
local-dir: ./ # Directory to upload
server-dir: / # Remote root directory
protocol: ftps # Use FTPS
timeout: 600000 # Set a high timeout for large projects
log-level: verbose

# Step 3: Deploy the application to the /horan-translator-bot/ directory on the cPanel server via FTP
- name: Deploy to /horan-translator-bot/ directory
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./ # Directory to upload
server-dir: /horan-translator-bot/ # Remote directory for /horan-translator-bot/
protocol: ftps # Use FTPS
timeout: 600000 # Set a high timeout for large projects
log-level: verbose

0 comments on commit 5ad197f

Please sign in to comment.