From a780ce940a29f2c4c523bf9a1ceb1add7935e622 Mon Sep 17 00:00:00 2001 From: Frnn4268 Date: Wed, 29 May 2024 17:23:24 -0600 Subject: [PATCH] Adding changes to workflow for Frontend --- .github/workflows/deploy-frontend.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-frontend.yaml b/.github/workflows/deploy-frontend.yaml index 61dcd29..4ef93ad 100644 --- a/.github/workflows/deploy-frontend.yaml +++ b/.github/workflows/deploy-frontend.yaml @@ -7,13 +7,13 @@ on: jobs: host-1: - runs-on: chat-easypark-deploy + runs-on: chat-easypark-deploy steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 # Setup Node.js with version 20 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: 20 @@ -22,7 +22,7 @@ jobs: run: npm install # Create .env file in public directory - - name: Adding env file + name: Adding env file run: echo "REACT_APP_API_URL=${{ secrets.BACKEND_URL }}" > public/.env # Build the React app in the public directory @@ -53,15 +53,14 @@ jobs: env: SSH_USER: ${{ secrets.SSH_USER }} SSH_HOST: ${{ secrets.SSH_HOST1 }} - host-2: - runs-on: self-hosted + runs-on: chat-easypark-deploy steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 # Setup Node.js with version 20 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: 20 @@ -70,7 +69,7 @@ jobs: run: npm install # Create .env file in public directory - - name: Adding env file + name: Adding env file run: echo "REACT_APP_API_URL=${{ secrets.BACKEND_URL }}" > public/.env # Build the React app in the public directory