Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
santiago-jv authored Jun 22, 2024
1 parent 7b1ba23 commit 597c880
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -17,19 +17,19 @@ 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
needs: [build]
if: success()
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Generate deployment package
run: |
zip -r deploy.zip ./dist/* -x '*.git*'
run: zip -r deploy.zip . -x '*.git*'

- name: Elastic Beanstalk Deployment
uses: davecarlson/beanstalk-deploy@v23
@@ -38,16 +38,6 @@ jobs:
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: social-network
environment_name: social-network-dev
version_label: 123945
version_label: 12345
region: us-east-2
deployment_package: deploy.zip

deploy:
runs-on: ubuntu-latest
needs: [build]
if: success()
steps:
- name: Checkout code
uses: actions/checkout@v4


0 comments on commit 597c880

Please sign in to comment.