I have a 77 Accord, so I am familiar with this. I am (SLOWLY) rebuilding this car as stock, even tho the thought of getting a lot of swap HP into this under 2000# car is tempting, because there are few of them left, and frankly it has a great, if sometimes cantankerous personality.
The head gasket is a problem on this engine, and here is what I learned. The head warps pretty easily, with moderate overheating. SOOOO...
1 - make sure the radiator is clean, inside and out.
2 - make sure the fan and its thermo-switch work properly and RELIABLY.
3 - make sure the thermostat for coolant flow (from head to radiator) works correctly. I replace these about every 1-2 years on principle. They do not last well, unlike later Hondas where they last many years.
3 - Have a reliable machine shop flatten both the head and the top of the block, probably needed at this point
4 - The best gasket for this engine that I have found is made by FEL-PRO. Better than OE, which is better than most of the others. Search til you find the FEL-PRO.
5 - When you install the head do this:
a - Torque head bolts per factory spec
b - Drive the car about 10 minutes, enough to reach normal operating temperature. Do NOT drive hard!!!
c - Park the car, let the engine return to completely to ambient temperature (maybe next day)
d - Loosen the head bolts. I don't remember if order makes a difference. May as well use tightening order. Use either that or reverse, but do not loosen in random order.
e - Re-Torque the head bolts per factory spec
f - repeat steps (c, d, e) ONCE after about 2 weeks
If you do not mill (flatten) the head and the block, it will blow head gaskets regularly. This involves removal and disassembly of the engine, (basically a rebuild) but once done will be good as long as the engine is not overheated again.
My engine was treated BRUTALLY in autocross/road circuit trials/back roads, plus fried badly (this is where the block warped at about 140,000 miles) when I lost the radiator fan switch in traffic and did not notice this till I smelled something burning under the hood, but I now have 200,000 miles on and it is ready to go back into the car again. The point is that once you get it right, if you don't overheat it, it should be good for quite a long time.
Good Luck!