Skip to content

Merge pull request #221 from open-source-uom/dependabot/npm_and_yarn/… #51

Merge pull request #221 from open-source-uom/dependabot/npm_and_yarn/…

Merge pull request #221 from open-source-uom/dependabot/npm_and_yarn/… #51

Workflow file for this run

name: Deploy to Production with FTP
on:
push:
branches:
- main
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 }}
exclude: |
**/docs/**
**/nginx/**
**/.github/**