Skip to content

Commit e63c8ab

Browse files
authored
Create deploy.yml
1 parent 0f23ad5 commit e63c8ab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Beanstalk Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: Checkout source code
13+
uses: actions/checkout@v2
14+
15+
- name: Generate deployment package
16+
run: zip -r deploy.zip . -x '*.git*'
17+
18+
- name: Deploy to EB
19+
uses: einaregilsson/beanstalk-deploy@v18
20+
with:
21+
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
22+
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23+
application_name: MyApplicationName
24+
environment_name: MyApplication-Environment
25+
region: us-west-2
26+
deployment_package: deploy.zip

0 commit comments

Comments
 (0)