Your deploy workflow is reviewed and its check is green. In this lesson, you merge it and watch GitHub turn that merge into a live site, without uploading a single file yourself. Do the two steps below first, then watch the video to see what happens after the merge.
Switch Pages to GitHub Actions and Merge
Your deploy pull request has a green check, and two steps stand between it and the store’s live site: a setting and the merge. GitHub Pages needs to know that a workflow will publish your site, so tell it first, before you merge:
-
On your repository’s page on GitHub, open Settings, then Pages in the sidebar.
-
Under Build and deployment, the Source menu says Deploy from a branch. Choose GitHub Actions instead. GitHub saves the choice right away.
Now open your pull request, “Deploy the site to GitHub Pages on every push to main”. If the merge button doesn’t already say Squash and merge, pick it from the button’s menu, keep the message GitHub fills in, and click Confirm squash and merge. Then click Delete branch.