diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 20a775c..4d1e098 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -40,3 +40,16 @@ jobs: - name: Invalidate Cloudfront run: aws cloudfront create-invalidation --distribution-id "E1TX7G3VGQGAF4" --path "/*" + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '>=1.21' + + - name: Build lambda function + run: go build + + - name: Deploy new Lambda function + run: | + zip package.zip nocontent Inconsolata.ttf + aws lambda update-function-code --function-name placeholder-image --zip-file fileb://package.zip