Skip to content

ci: update build script in the ci file #65

ci: update build script in the ci file

ci: update build script in the ci file #65

Workflow file for this run

name: Deploy CUFinder MCP Server
on:
push:
branches: [ main, develop ]
jobs:
build:
name: CUFinder MCP Server CI
strategy:
matrix:
os:
- ubuntu-latest
node_version:
- 20.x
architecture:
- x64
runs-on: ${{ matrix.os }}
steps:
- name: Get latest code
uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
check-latest: false
architecture: ${{ matrix.architecture }}
- name: Install dependencies
run: npm i
- name: Setup env file
run: |
touch .env.production
echo NODE_ENV = production >> .env.production
echo PORT = 4000 >> .env.production
echo AUTH0_DOMAIN = ${{ secrets.AUTH0_DOMAIN }} >> .env.production
echo AUTH0_CLIENT_ID = ${{ secrets.AUTH0_CLIENT_ID }} >> .env.production
echo AUTH0_CLIENT_SECRET = ${{ secrets.AUTH0_CLIENT_SECRET }} >> .env.production
echo AUTH0_CALLBACK_URL = ${{ secrets.AUTH0_CALLBACK_URL }} >> .env.production
echo AUTH0_AUDIENCE = ${{ secrets.AUTH0_AUDIENCE }} >> .env.production
- name: Build app
run: npm run build
- name: Sync files
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: 21
protocol: ftps
security: loose
timeout: 600000
server-dir: public_html/mcp/
exclude: |
**/.husky*
**/.git*
**/.git*/**
**/.vscode/**
**/node_modules/**
**/src/**
.editorconfig
.env
.gitignore
CHANGELOG.md
prettier.config.js
README.md
commitlint.config.js