In the Born-Oppenheimer Approximation the nuclei are infinitely heavy point particles that move in the effective field of the electrons. Since the mass is considered to be infinitely heavy, within the BO approximation there is no change in the potential energy as a function of the internuclear distance. Effects of the finite nuclear mass can be incorporated and are referred to as adiabatic corrections to the BO energies. These corrections are very small (the difference in the adiabatic corrections for H$_2$ and D$_2$ is 3 cm$^{-1}$ or 0.0085 kcal/mol [Pachucki and Komasa, J. Chem. Phys. 141, 223103 (2014)]). Finite nuclear size effects are much smaller than that and can only be observed in high-precision spectroscopy of the simplest molecules.
A more important effect of the different mass for the different isotopes is the effect on the vibrational energy structure. When solving the Schrodinger Equation for the nuclear potential, one obtains the rovibrational energies (and wave functions). As you probably know, the lowest energy solution is not located at the zero of the potential energy curve, but has an offset which is typically referred to as the zero point energy. The zero point energy is roughly equal to halve of the harmonic frequency of the potential and since the harmonic frequency scales as $\omega_e\sim \sqrt{\frac{1}{\mu}}$, with $\mu$ the reduced mass of the system, the dissociation energy (i.e. bond energy) with respect to the ground state of the potential becomes larger with increasing $\mu$ as the ZPE becomes smaller.
For H$_2$, $\omega_e=4401$ cm$^{-1}$ using the scaling with $\mu$, we find for D$_2$ a value for $\omega_e(\text{D}_2)=\omega_e(\text{H}_2)/\sqrt(2)=3112$ cm$^{-1}$ and thus a difference of 1289 cm$^{-1}$. The difference in the dissociation energy $D_0$ is half of the difference in the harmonic frequency, so $\Delta D_0=644.5$ cm$^{-1}$. In good agreement with the experimental result of 630 cm$^{-1}$ (Liu et al. J. Chem. Phys. 130, 174306 (2009) and Sprecher et al., J. Chem. Phys. 132, 154301 (2010)).
When looking at the energy released in a reaction, you should also consider the change in $D_0$ for the products of course.