Skip to content

Commit

Permalink
Adding changes to workflow for Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Frnn4268 committed May 29, 2024
1 parent 0d186ef commit a780ce9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deploy-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit a780ce9

Please sign in to comment.