Currently we push both the source and the build output so github can just deploy. The clean way of doing this (from what I understand) is to create a separate deploy branch that we configure github to serve the pages from. Then have an action on the main branch that builds it and pushes the build artifacts (only) into the deploy branch for github to serve.
Currently we push both the source and the build output so github can just deploy. The clean way of doing this (from what I understand) is to create a separate deploy branch that we configure github to serve the pages from. Then have an action on the main branch that builds it and pushes the build artifacts (only) into the deploy branch for github to serve.