Skip to content

Commit b08fd20

Browse files
authored
Update react.yml
1 parent fda4aa1 commit b08fd20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/react.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
cd client # Navigate to the client folder
2727
npm ci
2828
29+
- name: Check if REACT_APP_HOST secret is available
30+
run: |
31+
if [ -z "${{ secrets.REACT_APP_HOST }}" ]; then
32+
echo "REACT_APP_HOST is not set. Cancelling the workflow."
33+
exit 1 # Exit the workflow if the secret is not found
34+
fi
35+
2936
- name: Copy .env file
3037
run: |
3138
cd client # Navigate to the client folder
@@ -35,10 +42,12 @@ jobs:
3542
run: |
3643
cd client # Navigate to the client folder
3744
npm run build
45+
3846
- name: Create 404.html for routing support
3947
run: |
4048
cd client # Navigate to the client folder
4149
cp build/index.html build/404.html
50+
4251
- name: Upload artifact
4352
uses: actions/upload-pages-artifact@v3
4453
with:

0 commit comments

Comments
 (0)