Skip to content

Update FTP deployment workflow to change local directory from 'dist/'… #5

Update FTP deployment workflow to change local directory from 'dist/'…

Update FTP deployment workflow to change local directory from 'dist/'… #5

Workflow file for this run

name: Build and Deploy to FTP
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install server dependencies
run: npm install
- name: Install client dependencies
run: cd client && npm install
- name: Build client
run: cd client && npm run build
- name: Start server
run: nohup npm run start &
- name: Upload to FTP server
uses: SamKirkland/[email protected]
with:
server: ftp://youtubdle.com
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: build/
server-dir: /