From 6fbec53396869eb4f5cc8015ef1a3ca5d500038b Mon Sep 17 00:00:00 2001 From: Juancho <116334702+juanchok12@users.noreply.github.com> Date: Mon, 18 Mar 2024 01:54:07 -0700 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8b13789..9f8e16a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 +