This is an adder for svelte-add
; you should read its README
before continuing here.
This adder's codename is github-pages
, and can be used like so:
npx svelte-add@latest github-pages
This adder supports only SvelteKit Svelte apps.
dirToPublish
(defaultbuild
): defines the folder name that should be published to github pagescustomDomain
: can be set to publish to a custom domain. Must be a FQDN (Fully qualified domain name), without the protocol.
After the adder runs,
- Go to your GitHub repository
- Open Settings > Pages
- Choose the branch
gh-pages
as source and click save - Wait a few seconds and your page should be up and running under the link GitHub provides you.