I agree with strynboen. The usual problem with "boiling battery" is a bad reference voltage to the regulator, if the regulator has been tested OK.
The regulator takes "ignition key on" power (black wire) and uses it for two things: to power the alternator field coil and control alternator output, and as its reference voltage to decide how much alternator power to ask for.
The black wire voltage at the alternator will never be exactly battery voltage, there will always be some voltage drop in the harness wiring, connectors, and switches.
When that voltage drop increases because of corroded connectors and switches or other such problems, the reference voltage gets low enough that - if the alternator can make enough power - the battery voltage goes above "maximum" and damage results.
You want a wet cell battery to be at around 14.5 volts when fully charged with the engine running. Less, and it won't reach full charge. More, and the electrolyte liquid's water is "boiled" off as hydrogen and oxygen gas (not water vapour).
Switch on the bike and have all lights etc on. Measure battery voltage at the battery terminals. Measure again from the frame (an engine bolt head is good) to the battery "+" terminal: This must be almost exactly equal to the battery terminal measurement - within 1/10 V or so! If not, check the battery ground ("-") cable to ensure it is in good condition and has an excellent connection to the frame. Once the ground is good (if it wasn't) measure from the regulator black wire to frame. This should be within 1V of the battery measurement (recheck battery voltage at the same time as the battery will be draining while the key is on).
The Problem - if the battery is at 12V and you measure 9V at the regulator black wire, the regulator will be trying to get that 9V up to 14.5V... if it can manage that, the battery will actually be a 17.5 volts and overcharging (boiling dry).
One option is to clean up the harness connectors and switches to minimize voltage drop. Another is to add a relay with its coil from black to ground switching battery "+" terminal directly to the regulator terminal for the black wire, this will give the best reference voltage and alternator performance (the field coil powers from that regulator terminal, and more coil voltage = more alternator power output).
It is possible that the alternator field coil has been miswired and gets full voltage all the time, with the regulator doing nothing. Or the regulator is bad. Or you've used a more modern regulator not designed for the OEM wiring.