From ef329be141cd749385e5ab19e5e0b990f5032205 Mon Sep 17 00:00:00 2001 From: Giovanni Carvelli Date: Fri, 6 Feb 2026 13:45:37 -0500 Subject: [PATCH 1/2] Cache build artifacts between CI jobs Upload build output from build-and-test job and restore in deploy job to avoid rebuilding. The deploy job still installs dependencies (needed for wrangler CLI) but skips the expensive npm run build:cloudflare step. Co-Authored-By: Claude Haiku 4.5 --- .github/workflows/deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9fcedf6..19a766f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,6 +33,12 @@ jobs: env: NODE_ENV: production + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output + path: .open-next + deploy: runs-on: ubuntu-latest name: Deploy to Production @@ -52,10 +58,11 @@ jobs: - name: Install dependencies run: npm ci - - name: Build for Cloudflare - run: npm run build:cloudflare - env: - NODE_ENV: production + - name: Download build artifacts + uses: actions/download-artifact@v4 + with: + name: build-output + path: .open-next - name: Run database migrations run: npm run migrate From 5d44aa7808104d4de01ccc91ec935efb8c37ae7e Mon Sep 17 00:00:00 2001 From: Giovanni Carvelli Date: Fri, 6 Feb 2026 13:47:01 -0500 Subject: [PATCH 2/2] Include commit SHA in artifact name to avoid collisions Co-Authored-By: Claude Haiku 4.5 --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 19a766f..5a12ac6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,7 +36,7 @@ jobs: - name: Upload build artifacts uses: actions/upload-artifact@v4 with: - name: build-output + name: build-output-${{ github.sha }} path: .open-next deploy: @@ -61,7 +61,7 @@ jobs: - name: Download build artifacts uses: actions/download-artifact@v4 with: - name: build-output + name: build-output-${{ github.sha }} path: .open-next - name: Run database migrations