Use https://github.com/actions/deploy-pages in combination with https://github.com/actions/upload-pages-artifact to use a single build for artifact-storage and gh-pages deployment.
Use https://github.com/actions/deploy-pages in combination with https://github.com/actions/upload-pages-artifact to use a single build for artifact-storage and gh-pages deployment.