Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamloe committed Oct 14, 2024
1 parent f8a7885 commit 9c7292b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/upload-zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: '1.22.0'
- name: Build function
run: make function
- name: Upload release asset
Expand All @@ -22,3 +20,4 @@ jobs:
asset_path: ./function.zip
asset_name: function.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ build:

function:
GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o bootstrap main.go
zip myFunction.zip bootstrap
zip function.zip bootstrap

0 comments on commit 9c7292b

Please sign in to comment.