From f36f9a8413329affb5a8dfe6308a02324e992363 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 24 Apr 2026 15:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=A0=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=B8=8B=E7=9A=84CICD=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea-ci.yml | 129 -------------------------------------------------- 1 file changed, 129 deletions(-) delete mode 100644 .gitea-ci.yml diff --git a/.gitea-ci.yml b/.gitea-ci.yml deleted file mode 100644 index ce1c39a..0000000 --- a/.gitea-ci.yml +++ /dev/null @@ -1,129 +0,0 @@ -name: CI/CD Pipeline - -on: - push: - branches: - - develop - - master - pull_request: - branches: - - develop - - master - -jobs: - build-dev: - if: github.ref == 'refs/heads/develop' - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "18" - registry-url: "https://registry.npmmirror.com" - - - name: Install dependencies - run: npm ci - - - name: Type check - run: npm run type-check || true - - - name: Lint - run: npm run lint || true - - - name: Build - run: npm run build - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: dev-dist - path: dist/ - retention-days: 1 - - deploy-dev: - if: github.ref == 'refs/heads/develop' - needs: build-dev - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: dev-dist - path: dist/ - - - name: Deploy to dev server - uses: appleboy/scp-action@master - with: - host: ${{ secrets.DEV_SERVER_IP }} - username: root - password: ${{ secrets.DEV_SSH_PASSWORD }} - port: 22 - source: "dist/*" - target: ${{ secrets.DEV_SERVER_PATH }} - strip_components: 0 - overwrite: true - command: | - mkdir -p ${{ secrets.DEV_SERVER_PATH }} - chmod 755 ${{ secrets.DEV_SERVER_PATH }} - - build-prod: - if: github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "18" - registry-url: "https://registry.npmmirror.com" - - - name: Install dependencies - run: npm ci - - - name: Type check - run: npm run type-check || true - - - name: Lint - run: npm run lint || true - - - name: Build - run: npm run build - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: prod-dist - path: dist/ - retention-days: 7 - - deploy-prod: - if: github.ref == 'refs/heads/master' - needs: build-prod - runs-on: ubuntu-latest - environment: production - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: prod-dist - path: dist/ - - - name: Deploy to prod server - uses: appleboy/scp-action@master - with: - host: ${{ secrets.PROD_SERVER_IP }} - username: root - password: ${{ secrets.PROD_SSH_PASSWORD }} - port: 22 - source: "dist/*" - target: ${{ secrets.PROD_SERVER_PATH }} - strip_components: 0 - overwrite: true - command: | - mkdir -p ${{ secrets.PROD_SERVER_PATH }} - chmod 755 ${{ secrets.PROD_SERVER_PATH }}