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 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: