Shapekeys affecting Bones


So I’ve been making an extremely simple rig with a cube for a short animation, and I made a shapekey for him to stretch up but of course his 2 bones don’t follow the mesh when it’s deformed by the Shapkeys. Is there any way to make the bones follow the mesh and if not what other solutions are there? THANKS IN ADVANCE :slight_smile: