'I was working...' is past continuous. You use it when you were doing something at a particular time.
"I was working on my homework when the doorbell rang."
"We were driving to Pittsburgh when the storm came."
"She was riding when her horse fell."
In the case you give, it should be "I worked in the office all weekend.", because the action was completed in the past and is not compared with some other event or time.