Skip to content

release: 28-10-2024 (#414) #84

release: 28-10-2024 (#414)

release: 28-10-2024 (#414) #84

name: Deploy to cPanel
on:
workflow_dispatch:
push:
branches:
- main
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.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: ./out/
options: "--parallel=10 --exclude-glob=**/docs/**"