From 1d996242c88884cd268eebdb96eab4bf3bd4863e Mon Sep 17 00:00:00 2001 From: code913 <54856929+code913@users.noreply.github.com> Date: Mon, 30 Oct 2023 22:52:51 +0530 Subject: [PATCH] fix: Wrong directory for github pages (#14) * fix: change output dir in svelte config * fix: change output dir in deploy action --- .github/workflows/deploy.yml | 4 ++-- svelte.config.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8b9ca27..3b5a04c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: - name: Upload Artifacts uses: actions/upload-pages-artifact@v2 with: - path: "build/" + path: "docs/" deploy: needs: build_site @@ -46,4 +46,4 @@ jobs: steps: - name: Deploy id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2 diff --git a/svelte.config.js b/svelte.config.js index 33c26a5..13a4462 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,8 +4,8 @@ import preprocess from "svelte-preprocess"; const config = { kit: { adapter: adapter({ - pages: "build", - assets: "build", + pages: "docs", + assets: "docs", fallback: undefined, precompress: false, strict: true @@ -22,4 +22,4 @@ const config = { config.paths = { base: process.argv.includes("dev") ? "" : process.env.BASE_PATH }; -export default config; \ No newline at end of file +export default config;