You can do that via hooks. You could probably even manage to hook up a CI engine like woodpecker via hooks and do it entirely that way.
Gitea or Forgejo with actions is almost certainly easier, but it's possible to do it with pure git.
Gitea or Forgejo with actions is almost certainly easier, but it's possible to do it with pure git.
Sometimes the juice isn't worth the squeeze, and for me, doing it all custom isn't worth it for my home projects.