From d9576c2cd9f55ce812a8538d8ea5d88f75cab7e2 Mon Sep 17 00:00:00 2001 From: Gautam Kumar Date: Wed, 15 Apr 2026 15:51:11 +0530 Subject: [PATCH 1/2] feat: add GitHub Actions workflow to automate server deployment to GCP VM --- .github/workflows/deploy.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cca76f9..0f9fba5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,12 +7,39 @@ on: paths: - 'server/**' - 'docker-compose.cloud.yml' - - 'startup.sh' + - '.github/workflows/deploy.yml' + pull_request: + branches: + - main + paths: + - 'server/**' - '.github/workflows/deploy.yml' jobs: + test-build: + name: Server Build Check + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '24' + cache: 'npm' + cache-dependency-path: server/package-lock.json + + - name: Install Dependencies + run: cd server && npm ci + + - name: Build Server + run: cd server && npm run build + deploy: name: Deploy API to Compute Engine + if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest environment: name: production From c2c92bcdf94b8d0353e005942ea4340d14108ee9 Mon Sep 17 00:00:00 2001 From: Gautam Kumar Date: Wed, 15 Apr 2026 15:51:23 +0530 Subject: [PATCH 2/2] chore: update .gitignore to exclude all tar, zip, and gz archive files --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 85bdb1c..87c88ab 100644 --- a/.gitignore +++ b/.gitignore @@ -52,4 +52,7 @@ qdrant_data/ _agents/ _agent/ brain/ -server.tar \ No newline at end of file +# Archives +*.tar +*.zip +*.gz \ No newline at end of file