Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #91 from igrowker/devops-main
Browse files Browse the repository at this point in the history
add aws deploy
  • Loading branch information
josepacco00 authored Dec 5, 2024
2 parents d64fb36 + 3609933 commit 967226e
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@ on:
push:
branches:
- develop
pull_request:
branches:
- "*"
- "!devops-main"
types:
- opened
- synchronize
workflow_dispatch:
# inputs:
# tag:
# description: "Tag for the Docker image" # Descripción del input
# required: true # Hace que este campo sea obligatorio
# default: "latest"

jobs:
build-and-test:
Expand All @@ -42,16 +30,15 @@ jobs:
- run: npm install

# - run: VITE_API_URL=${{ secrets.VITE_API_URL }} npm run build
- run: set VITE_API_URL && npm run build
- run: set VITE_API_URL=${{ secrets.VITE_API_URL }} && npm run build

# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.ACCESS_ID }}
aws-secret-access-key: ${{ secrets.SECRET_KEY }}
aws-region: us-east-1

# - name: Deploy in aws
# if: success()
# run: aws s3 sync ./dist s3://${{ vars.WEBSITE }}
- name: Deploy in aws
if: success()
run: aws s3 sync ./dist s3://${{ vars.WEBSITE }}

0 comments on commit 967226e

Please sign in to comment.