Skip to content

Commit

Permalink
action: build client & send file to cPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Jun 2, 2024
1 parent 14804d7 commit 00650b7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
paths:
- 'server/**'

jobs:
deploy:
Expand All @@ -32,6 +30,13 @@ jobs:
run: |
echo "machine ${{ secrets.FTP_SERVER }} login ${{ secrets.FTP_USERNAME }} password ${{ secrets.FTP_PASSWORD }}" > ~/.netrc
- name: Upload backend files
- name: Build and Upload frontend
run: |
lftp -e "mirror --only-newer --parallel=100 -R ./server/ /debatehive-api/" ${{ secrets.FTP_SERVER }}
cd client
npm ci
npm run build
lftp -e "cd debateme.shubhamlal.in; mirror --only-newer --parallel=100 -R./dist/ /" ${{ secrets.FTP_SERVER }}
- name: Upload backend
run: |
lftp -e "mirror --only-newer --parallel=100 -R./server/ /debateme-api/" ${{ secrets.FTP_SERVER }}

0 comments on commit 00650b7

Please sign in to comment.