File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 26
26
cd client # Navigate to the client folder
27
27
npm ci
28
28
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
+
29
36
- name : Copy .env file
30
37
run : |
31
38
cd client # Navigate to the client folder
@@ -35,10 +42,12 @@ jobs:
35
42
run : |
36
43
cd client # Navigate to the client folder
37
44
npm run build
45
+
38
46
- name : Create 404.html for routing support
39
47
run : |
40
48
cd client # Navigate to the client folder
41
49
cp build/index.html build/404.html
50
+
42
51
- name : Upload artifact
43
52
uses : actions/upload-pages-artifact@v3
44
53
with :
You can’t perform that action at this time.
0 commit comments