Skip to content

Commit

Permalink
action: debug failed CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Jun 2, 2024
1 parent 00650b7 commit fd343c4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
with:
node-version: '20.10.0'

- name: Install dependencies and build
run: |
cd client
npm install
npm run build
- name: Install lftp
run: sudo apt install lftp

Expand All @@ -30,12 +36,9 @@ jobs:
run: |
echo "machine ${{ secrets.FTP_SERVER }} login ${{ secrets.FTP_USERNAME }} password ${{ secrets.FTP_PASSWORD }}" > ~/.netrc
- name: Build and Upload frontend
- name: Upload contents of dist folder
run: |
cd client
npm ci
npm run build
lftp -e "cd debateme.shubhamlal.in; mirror --only-newer --parallel=100 -R./dist/ /" ${{ secrets.FTP_SERVER }}
lftp -e "mirror --only-newer --parallel=100 -R ./client/dist/ /debateme.shubhamlal.in/" ${{ secrets.FTP_SERVER }}
- name: Upload backend
run: |
Expand Down

0 comments on commit fd343c4

Please sign in to comment.