I think I finally got this right after giving it more than 5 minutes of thought.
Changed uploadAfterSuccessfulCompile to uploadToServer
Changed runServerCommands from enum to boolean
If both runServerCommands and uploadToServer options are set to true, they will execute in order, meaning runServerCommands won't run if uploadToServer doesn't return true, meaning a successful upload.
Otherwise, those commands are successfully executed based on their boolean value specified in the config.
I think I finally got this right after giving it more than 5 minutes of thought.
uploadAfterSuccessfulCompile
touploadToServer
runServerCommands
fromenum
toboolean
runServerCommands
anduploadToServer
options are set to true, they will execute in order, meaningrunServerCommands
won't run ifuploadToServer
doesn't returntrue
, meaning a successful upload.