Use briefly when you want to say something was done for a short period of time.
Use shortly when you want to say that something will happen very soon.
- He spoke briefly on the subject of fishing.
(he spoke for a short period of time about fishing) - I will shortly go on holiday.
(soon I will go on holiday)