While a young Scout - many many years ago - I was taught that the first priority was to put up the dining fly and get the rain-sensitive gear - usually charcoal, sleeping bags, & packs - underneath it. I would think that would include at least some dry firewood (if it had just started raining).

We would typically try to wait out the rain a bit before putting up tents in hopes that the rain would let up. Sometimes it did, but more often it didn't.