From 9ac74fc846b33d1770c822ab5c11e80e15f7dd13 Mon Sep 17 00:00:00 2001 From: Perry Zhu Date: Sun, 12 Oct 2025 22:53:09 -0700 Subject: [PATCH 1/2] fix: build lambda correctly --- .github/workflows/build-lambda.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-lambda.yaml b/.github/workflows/build-lambda.yaml index 5ba2059..eb4eab0 100644 --- a/.github/workflows/build-lambda.yaml +++ b/.github/workflows/build-lambda.yaml @@ -27,24 +27,24 @@ jobs: python-version: "3.13" - name: Install UV uses: astral-sh/setup-uv@v6 - with: - working-directory: scripts - name: Build Lambda run: | + cd scripts + # Create build directory mkdir -p dist # Install dependencies to build directory - uv sync --no-cache --target dist + uv sync --no-cache # Copy Lambda function files to build directory - cp scripts/lambda-handler.py dist/ - cp scripts/main.py dist/ + cp lambda-handler.py dist/ + cp main.py dist/ # Create deployment package cd dist - zip -r ../lambda-function.zip . - cd .. + zip -r ../../lambda-function.zip . + cd ../.. - name: Deploy to S3 run: | # Upload the Lambda function zip to S3 From bebe9fb327c834728f87956462e95f8cda6eaafb Mon Sep 17 00:00:00 2001 From: Perry Zhu Date: Sun, 12 Oct 2025 22:54:01 -0700 Subject: [PATCH 2/2] fix: don't trigger s3 push on workflow changes --- .github/workflows/push-artifacts.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/push-artifacts.yaml b/.github/workflows/push-artifacts.yaml index ff0656c..f1e8327 100644 --- a/.github/workflows/push-artifacts.yaml +++ b/.github/workflows/push-artifacts.yaml @@ -7,6 +7,7 @@ on: paths-ignore: - scripts/** - README.md + - .github/** workflow_dispatch: jobs: push-artifacts-to-s3: