Skip to content

Commit

Permalink
add lambda deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kringkaste committed Nov 27, 2023
1 parent 213c64f commit f78ba6c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f78ba6c

Please sign in to comment.