From e9b6ece6ebccd14bf6fb962f3c0a6362a6098f8d Mon Sep 17 00:00:00 2001 From: Lee Harrold Date: Fri, 5 Apr 2024 19:44:16 -0400 Subject: [PATCH] rm fe build action --- .github/workflows/build-deploy.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 94a9e70..6c5b8be 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -12,6 +12,30 @@ concurrency: cancel-in-progress: true jobs: + build-frontend: + name: Build Frontend + runs-on: ubuntu-latest + environment: prod + steps: + - name: Checkout branch + uses: actions/checkout@v3 + + - name: Build FE + run: | + cd web + npm install + + - name: Build FE + run: | + cd web + npm run build + # FE build will be in build + + - uses: actions/upload-artifact@v4 + with: + name: frontend-${{ github.sha }} + path: web/build + build-deploy: name: Build and Deploy runs-on: ubuntu-latest @@ -34,9 +58,8 @@ jobs: - name: Download Frontend Build uses: actions/download-artifact@v4 with: - name: frontend-build + name: frontend-${{ github.sha }} path: api/build - github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build, tag, and push image to Amazon ECR id: build-image