You don’t. I have a github action that does all exports for my game (windows, linux and also macos).
i am using this image for that: barichello/godot-ci:4.4
is all you need (and you must disable notarization and set code-design to built-in in godot macos export setts)