Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
juanchok12 authored Mar 18, 2024
1 parent f900c71 commit 6fbec53
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
name: Deploy to AWS Elastic Beanstalk
on:
push:
branches:
- main # Set to your default branch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8' # Set to your Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Add steps for testing your application if needed
# - name: Test
# run: |
- name: Zip the repository
run: zip -r deployment-package.zip . -x "*.git*"

- name: Deploy to AWS Elastic Beanstalk
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: "Concentration of Banking"
environment_name: "ConcentrationofBanking-env"
region: us-east-1
version_label: ${{ github.sha }}
deployment_package: deployment-package.zip


0 comments on commit 6fbec53

Please sign in to comment.