What John writes. Do what suits you. Here's my way:
If docked for some time, I drop the sail, take the halyard off and move it to the boom, level the boom, roll the sail and lash it to the boom. I can roll the sail by myself more easily than I could flake it. My favorite lashing looks like this - it does not require to pull through the entire remaining length of the rope.
It starts on the left with a simple loop held by some slip knot.
Then I grab a short length, make a bight (a U) and pull it around and under itself.
After that I repeat, but the next bight goes through the first.
At the end, I tie up with some other slip knot.
To undo, you pull the two slip knots and then you can simply pull off the rope, the lashing will unravel as you pull.
It's not as secure as pulling through the entire line for each wrap, but I'm not securing my boat for a hurricane and for a temporary lashing time saved is what matters.