File tree Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,37 @@ jobs:
4545        run : yarn install --frozen-lockfile 
4646
4747      - name : Build with Next.js 
48-         run : yarn build 
48+         run : | 
49+           echo "Starting Next.js build process..." 
50+           yarn build 
51+           echo "Build completed. Checking output directory..." 
52+           if [ -d "./out" ]; then 
53+             echo "✅ out directory exists" 
54+             ls -la ./out/ 
55+           else 
56+             echo "❌ out directory not found" 
57+             echo "Available directories:" 
58+             ls -la ./ 
59+             echo "Trying alternative build methods..." 
60+             rm -rf .next out 
61+             NODE_ENV=production yarn next build || echo "Alternative build failed" 
62+             ls -la ./ 
63+           fi 
4964         env :
5065          NEXT_PUBLIC_AIRTABLE_PAT : ${{ secrets.NEXT_PUBLIC_AIRTABLE_PAT }} 
5166          NEXT_PUBLIC_AIRTABLE_BASE : ${{ secrets.NEXT_PUBLIC_AIRTABLE_BASE }} 
5267          NEXT_PUBLIC_AIRTABLE_TABLE : ${{ secrets.NEXT_PUBLIC_AIRTABLE_TABLE }} 
5368
54-       - name : Verify build output 
69+       - name : Check if out directory exists before upload 
5570        run : | 
56-           echo "Checking if out directory exists:" 
57-           ls -la ./ 
58-           echo "Contents of out directory (if exists):" 
59-           ls -la ./out/ || echo "out directory not found" 
60-          
71+           if [ ! -d "./out" ]; then 
72+             echo "❌ Error: out directory does not exist" 
73+             echo "Current directory contents:" 
74+             ls -la ./ 
75+             exit 1 
76+           fi 
77+           echo "✅ out directory confirmed, proceeding with upload" 
78+            
6179       - name : Upload artifact 
6280        uses : actions/upload-pages-artifact@v3 
6381        with :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments