Skip to content

Commit

Permalink
action: modify action yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Jun 2, 2024
1 parent 722693f commit 2039f9d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ jobs:
with:
node-version: '20.10.0'

- name: Install dependencies and build
env:
VITE_SERVER_URL: ${{ secrets.VITE_SERVER_URL }}
run: |
cd client
npm install
npm run build
- name: Install lftp
run: sudo apt install lftp

Expand All @@ -38,6 +30,14 @@ jobs:
run: |
echo "machine ${{ secrets.FTP_SERVER }} login ${{ secrets.FTP_USERNAME }} password ${{ secrets.FTP_PASSWORD }}" > ~/.netrc
- name: Install dependencies and build
env:
VITE_SERVER_URL: ${{ secrets.VITE_SERVER_URL }}
run: |
cd client
npm install
npm run build
- name: Upload contents of dist folder
run: |
lftp -e "mirror --only-newer --parallel=100 -R ./client/dist/ /debateme.shubhamlal.in/" ${{ secrets.FTP_SERVER }}
Expand Down

0 comments on commit 2039f9d

Please sign in to comment.