File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -255,21 +255,25 @@ jobs:
255255
256256 # Create backup
257257 cp "$ASSEMBLY_PATH" "$ASSEMBLY_PATH.backup"
258+ echo "Created backup at: $ASSEMBLY_PATH.backup"
258259
259260 # Publicize the assembly
260- assembly-publicizer "$ASSEMBLY_PATH" --output "$ASSEMBLY_PATH" --overwrite
261-
262- if [ $? -eq 0 ]; then
261+ echo "Running assembly-publicizer..."
262+ if assembly-publicizer "$ASSEMBLY_PATH" --output "$ASSEMBLY_PATH" --overwrite; then
263263 echo "Successfully publicized Assembly-CSharp.dll"
264264 # Remove backup if successful
265265 rm "$ASSEMBLY_PATH.backup"
266+ echo "Removed backup file"
266267 else
267- echo "Failed to publicize Assembly-CSharp.dll, restoring backup"
268+ echo "Failed to publicize Assembly-CSharp.dll"
269+ echo "Restoring original file from backup..."
268270 mv "$ASSEMBLY_PATH.backup" "$ASSEMBLY_PATH"
271+ echo "Original file restored. Workflow will fail."
269272 exit 1
270273 fi
271274 else
272275 echo "Error: Assembly-CSharp.dll not found at $ASSEMBLY_PATH"
276+ echo "This is required for publicized variants. Workflow will fail."
273277 exit 1
274278 fi
275279
You can’t perform that action at this time.
0 commit comments