From 1f7f408a43f2484ff3ed54578ab92c03bfacea8b Mon Sep 17 00:00:00 2001 From: saiaunghlyanhtet Date: Wed, 17 Apr 2024 09:55:44 +0630 Subject: [PATCH] fix: update github-ci.yml --- .github/workflows/github-ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 54ac93f..8ed8879 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -22,14 +22,11 @@ jobs: - name: Build Go binary run: go build -o app ./cmd/main.go - - name: Create temporary directory - run: mkdir temp + - name: Ensure required Lambda dependencies + run: go mod vendor - - name: Copy files to temporary directory - run: find . -maxdepth 1 -mindepth 1 -not -name 'temp' -exec cp -r {} temp/ - - - name: Zip binary - run: zip -r app.zip temp/ + - name: Zip binary with dependencies + run: zip -r app.zip app vendor - name: Upload artifact uses: actions/upload-artifact@v2