Skip to content

Commit ec69b5a

Browse files
committed
add workflow yaml
1 parent beafd53 commit ec69b5a

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.github/workflows/main.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: deploy to lambda
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy_lambda:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Configure AWS credentials
14+
uses: aws-actions/configure-aws-credentials@v1
15+
with:
16+
aws-region: ${{ secrets.AWS_REGION }}
17+
aws-access-key-id: ${{ secrets.GH_PUSH_AWS_ACCESS_KEY_ID }}
18+
aws-secret-access-key: ${{ secrets.GH_PUSH_AWS_SECRET_ACCESS_KEY }}
19+
- name: deploy
20+
run: |
21+
zip -j deploy.zip src/*
22+
aws lambda update-function-code --function-name=pdf-to-s3 --zip-file=fileb://deploy.zip

app.js renamed to src/app.js

File renamed without changes.

0 commit comments

Comments
 (0)