Example SvelteKit for GitHub-Pages
Using:
- Static files (markdown)
- Routing
- Automatic Github Deploy on Push
- Libraries:
- PostCSS
- Marked for Markdown Support
Setup GitHub-Pages
This assumes your repositry is public.
I have not tested this with the GitHub-Username page, only a repository page.
- commit and push to GH
- In your Repository go to Settings > Actions > General > Workflow permissions > and enable Read and Write Permissions, don't forget to hit Save
- Wait for the Build and Deploy action to finish, the first time it will fail.
Change in the Repository Settings > Actions > Pages to Deploy from a Branch and choose the gh-pages
Branch.
- Go to Actions and re-run the failed task.
- Wait a minute, your Site should be published at https://your-username.gihub.io/your-repository