From 4eb11e276e99abd7c0bea820ee4254bc287336ff Mon Sep 17 00:00:00 2001 From: Santiago Olayo <78331118+santiago-jv@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:28:29 -0500 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 94e314a..e10c7ea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,10 +17,14 @@ jobs: uses: actions/setup-node@v3 with: node-version: "20" + - name: Install dependencies for frontend run: | npm install + - name: Build Angular application + run: | + npm run build --prod deploy: runs-on: ubuntu-latest @@ -31,10 +35,11 @@ jobs: uses: actions/checkout@v4 - name: Generate deployment package - run: zip -r deploy.zip . -x '*.git*' + run: | + zip -r deploy.zip ./dist/* -x '*.git*' - - name: Elastic Beanstalk Deployment - uses: davecarlson/beanstalk-deploy@v23 + - name: Deploy to Elastic Beanstalk + uses: einaregilsson/beanstalk-deploy@v1.6 with: aws_access_key: ${{ secrets.AWS_ACCESS_KEY }} aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}