Skip to content

Commit

Permalink
fix: update github-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saiaunghlyanhtet committed Apr 17, 2024
1 parent e3a77c2 commit 1f7f408
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f7f408

Please sign in to comment.