File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,29 @@ jobs:
47
47
- name : Install project dependencies
48
48
run : npm ci
49
49
50
- # Step 4: Build the project
50
+ # Step 4: Build the project
51
51
- name : Build the project
52
52
run : npm run build
53
53
54
- # Step 5: Configure GitHub Pages
54
+ # Step 5: Verify build directory exists (add this step)
55
+ - name : Verify build directory
56
+ run : |
57
+ if [ ! -d "./dist" ]; then
58
+ echo "Error: Build directory './dist' does not exist. Check your build script.";
59
+ exit 1
60
+ fi
61
+
62
+ # Step 6: Configure GitHub Pages
55
63
- name : Configure GitHub Pages
56
64
uses : actions/configure-pages@v4
57
65
58
- # Step 6 : Upload build artifacts
66
+ # Step 7 : Upload build artifacts
59
67
- name : Upload build artifacts
60
68
uses : actions/upload-pages-artifact@v3
61
69
with :
62
- path : ./dist
70
+ path : ./dist # <-- Change './dist' to your build output directory if needed
63
71
64
- # Step 7 : Deploy to GitHub Pages
72
+ # Step 8 : Deploy to GitHub Pages
65
73
- name : Deploy to GitHub Pages
66
74
id : deployment
67
75
uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments