Skip to content

data: Updated data in Faculty_Profile section (#399) #92

data: Updated data in Faculty_Profile section (#399)

data: Updated data in Faculty_Profile section (#399) #92

name: Deploy to cPanel
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
deploy:
name: Build & FTP Sync
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '20'
- name: ⬇️ Install dependencies
run: npm ci
- name: 🛠️ Build Next.js application
run: npm run build
- name: 📂 Sync files
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ${{ secrets.BETA_FTP_SERVER }}
user: ${{ secrets.BETA_FTP_USERNAME }}
password: ${{ secrets.BETA_FTP_PASSWORD }}
localDir: ./out/
options: "--parallel=10 --exclude-glob=**/docs/**"