Merge pull request #221 from open-source-uom/dependabot/npm_and_yarn/… #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/** |