Skip to content

Update deploy-prod.yml #20

Update deploy-prod.yml

Update deploy-prod.yml #20

Workflow file for this run

name: Deploy to Production with FTP
on:
push:
branches:
- test
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Use the Node.js version you need
- name: Install dependencies
run: |
npm install --legacy-peer-deps # Added option to handle peer dependency issues
- name: Build
run: |
CI=false npm run build
- name: Upload to FTP server
uses: SamKirkland/[email protected]
with:
local-dir: build/
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME_PROD }}
password: ${{ secrets.FTP_PASSWORD_PROD }}
port: ${{ secrets.FTP_PORT }} # Add this line if supported