Skip to content

Commit b96a257

Browse files
Create aws.yml
1 parent 5fb55c0 commit b96a257

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/aws.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to Beanstalk
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@v20
20+
with:
21+
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
22+
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23+
application_name: backend-server
24+
environment_name: Backendserver-env
25+
version_label: 12345
26+
region: us-east-1
27+
deployment_package: deploy.zip

0 commit comments

Comments
 (0)