From 33c2fd5dd7f74d0bde93e7e687b08eb044f3bf80 Mon Sep 17 00:00:00 2001 From: xygodcyx <1323943635@qq.com> Date: Fri, 24 May 2024 17:01:27 +0800 Subject: [PATCH] windowsIcon --- .github/workflows/main.yml | 64 ------------------------------- .github/workflows/only server.yml | 29 -------------- 2 files changed, 93 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/only server.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 7237cda7..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Full Stack Deployment - -on: - push: - branches: - - main - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - # 安装 Node.js 和 npm - - name: Install Node.js and npm - uses: actions/setup-node@v2.1.5 - with: - node-version: '18' - - # 安装 vte 和其他前端依赖 - - name: Install frontend dependencies - working-directory: ./client - run: | - npm install vite -g - npm install - env: - NODE_ENV: production - - # 前端构建步骤 - - name: Build Vue App - working-directory: ./client - run: | - npm run build - env: - NODE_ENV: production - - # 缓存前端构建依赖 - - name: Cache frontend dependencies - uses: actions/cache@v2 - with: - path: client/node_modules - key: ${{ runner.os }}-frontend-${{ hashFiles('client/package-lock.json') }} - - # 复制前端构建结果到后端的public目录 - - name: Copy frontend build output to server - run: cp -r ./client/dist ./server/public - - # 后端构建步骤 - - name: Build and start Node.js server - working-directory: ./server - run: | - npm install - sudo node app.js - env: - NODE_ENV: production - - # 缓存后端构建依赖 - - name: Cache backend dependencies - uses: actions/cache@v2 - with: - path: server/node_modules - key: ${{ runner.os }}-backend-${{ hashFiles('server/package-lock.json') }} diff --git a/.github/workflows/only server.yml b/.github/workflows/only server.yml deleted file mode 100644 index 3bdf1ca4..00000000 --- a/.github/workflows/only server.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Only Server - -on: - push: - branches: - - main - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - # 安装 Node.js 和 npm - - name: Install Node.js and npm - uses: actions/setup-node@v2.1.5 - with: - node-version: '18' - - # 后端构建步骤 - - name: Build and start Node.js server - working-directory: ./ - run: | - npm install - sudo node app.js - env: - NODE_ENV: production \ No newline at end of file