Skip to content

fix deploy action

fix deploy action #11

Workflow file for this run

name: Deploy to FTP
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.9.0
- name: Install dependencies and build Next.js app
run: |
cd client
npm install
npm run build
- name: Deploy via FTPS
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: client/_next/
server-dir: drawing.shubhamlal.in/
protocol: ftps
timeout: 300000