There is a Static Web App action that looks like it should simplify the workflow: https://docs.github.com/en/actions/use-cases-and-examples/deploying/deploying-to-azure-static-web-app