Add SvelteKit workflow and properties for GitHub Pages deployment#3205
Open
Donny-C-1 wants to merge 1 commit intoactions:mainfrom
Open
Add SvelteKit workflow and properties for GitHub Pages deployment#3205Donny-C-1 wants to merge 1 commit intoactions:mainfrom
Donny-C-1 wants to merge 1 commit intoactions:mainfrom
Conversation
Montiwa11
approved these changes
Feb 19, 2026
|
validate-dataExpected — Waiting for status to be reported |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a dedicated starter workflow for SvelteKit projects deploying to GitHub Pages. Currently, SvelteKit users often have to manually adapt generic Node.js or Next.js workflows, which leads to common pitfalls regarding
adapter-staticand build output directories.Key Features
npmvsyarnbased on lockfiles.@sveltejs/adapter-staticis installed, preventing confusing build failures.actions/setup-nodecaching for faster dependency resolution.BASE_PATHto handle SvelteKit's routing in project-site subfolders.Testing
npm ciandyarn installpathways.actions/deploy-pagesaction.Tasks
For all workflows, the workflow:
.ymlfile with the language or platform as its filename, in lower, kebab-cased format (for example,docker-image.yml). Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET").GITHUB_TOKENso that the workflow runs successfully.