First, navigate to 'Settings' tab for github.io repository.
Second, click 'Pages' on the left sidebar.
Third, under 'Build and deployment', change 'Deploy from a branch' to 'GitHub Actions'.
Fourth, click configure 'Next.js' will lead you to a pre-made workflow.
Fifth, click 'Start commit'.