File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 5959          echo "::notice title=Unity Version::$unity_version" 
6060
6161build-package :
62-     timeout-minutes : 20 
6362    runs-on : ubuntu-22.04 
63+     timeout-minutes : 20 
6464    steps :
6565      - name : Normalize Path 
6666        id : path-normalizer 
8181          builds_path="${builds_path#/}" 
8282          builds_path="${builds_path%/}" 
8383
84-           final_path="/$builds_path/StandaloneLinux64/$package_name" 
84+           if [ -z "$project_path" ]; then 
85+             final_path="/$builds_path/StandaloneLinux64/$package_name" 
86+           else 
87+             final_path="/$project_path/$builds_path/StandaloneLinux64/$package_name" 
88+           fi 
8589
8690          export_path=$(echo "$final_path" | sed 's://*:/:g') 
8791
@@ -116,17 +120,6 @@ jobs:
116120          buildMethod : ${{ inputs.build-method }} 
117121          customParameters : ${{ inputs.custom-parameters }} 
118122
119-       - name : ' Debug: Verify Exported File Exists' 
120-         run : | 
121-           echo "Checking exported file:" 
122-           ls -la /github/workspace/build/StandaloneLinux64 
123-           if [ -f "/github/workspace/build/StandaloneLinux64/Test_1.0.0.unitypackage" ]; then 
124-             echo "File exists: /github/workspace/build/StandaloneLinux64/Test_1.0.0.unitypackage" 
125-           else 
126-             echo "File not found!" 
127-             exit 1 
128-           fi 
129- 
130123      - uses : actions/upload-artifact@v4 
131124        with :
132125          name : Build-StandaloneLinux64 
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public static void Export()
1818    { 
1919        var  options  =  ArgumentsParser . GetValidatedOptions ( ) ; 
2020        var  buildPath  =  options . GetValueOrDefault ( "customBuildPath" ) ; 
21+         buildPath  =  buildPath ? . Replace ( "/github/workspace/" ,  "" ) ; 
2122        Export ( _folderPath ,  buildPath ) ; 
2223    } 
2324
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments