It doesn't even need to be via galaxy. I use heroic games launcher, and logging into gogs site still shows all my recent achievements.
I think the only pre-requisite is that you install via their API rather than the offline installers they offer. (Which both galaxy and heroic do, I'm assuming lutris too? Tho haven't checked it personally).