Skip to content

Commit

Permalink
setup deployment for cPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Dec 22, 2023
1 parent 1e4ed02 commit 44ab930
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/deploy.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to cPanel

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies and build
run: |
cd client
npm install
npm run build
- name: Deploy via FTP
run: |
lftp -e "open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_HOST }}; set ssl:verify-certificate no; mirror -R -e -x .git/ -x .github/ -x .next/ -x node_modules/

0 comments on commit 44ab930

Please sign in to comment.