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