From 9c7292bcca0dd4e95c8c22663d1e9987d12c7072 Mon Sep 17 00:00:00 2001 From: Yotam loewenbach Date: Mon, 14 Oct 2024 13:01:22 +0300 Subject: [PATCH] Update release workflow --- .github/workflows/upload-zip.yaml | 9 ++++----- Makefile | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/upload-zip.yaml b/.github/workflows/upload-zip.yaml index 3c97c49..719fdf9 100644 --- a/.github/workflows/upload-zip.yaml +++ b/.github/workflows/upload-zip.yaml @@ -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 @@ -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 }} \ No newline at end of file diff --git a/Makefile b/Makefile index 0853c2c..c8d1c53 100644 --- a/Makefile +++ b/Makefile @@ -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