Is uninstall really necessary? I would argue that if the apk on github is signed with the same key, which it should, then just update from there. No uninstall required or even recommended as by keeping the continuity you automatically verify the signature of the side-loaded apk to be by the same keys that signed the Play Store version.