diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1c88854..220091a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,36 +10,9 @@ env: NODE_ENV: production jobs: - build-and-deploy: + deploy: runs-on: [self-hosted, rent-deploy] steps: - - name: Setup Node.js - run: | - which node || (curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs) - which pnpm || npm install -g pnpm - - - name: Install dependencies - run: | - pnpm config set store-dir .pnpm-store - pnpm install --frozen-lockfile - - - name: Build shared packages - run: | - pnpm --filter @rent/shared-types build - pnpm --filter @rent/shared-utils build - - - name: Build server - run: pnpm --filter @rent/server build - - - name: Build merchant-admin - run: pnpm --filter @rent/merchant-admin build - - - name: Build platform-admin - run: pnpm --filter @rent/platform-admin build - - - name: Build website - run: pnpm --filter @rent/official-website build - - name: Deploy to test if: github.ref == 'refs/heads/test' run: |