diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bd7eb53..438609e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install Node.js uses: actions/setup-node@v3 with: @@ -32,7 +31,7 @@ jobs: with: # this should match the `pages` option in your adapter-static options path: 'build/' - +g deploy: needs: build_site runs-on: ubuntu-latest diff --git a/bun.lockb b/bun.lockb index 5435dbd..c056326 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 5176c21..e217f72 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "preview": "vite preview", "lint": "prettier --plugin-search-dir . --check . && eslint .", "format": "prettier --plugin-search-dir . --write .", - "deploy": "gh-pages -d build -t true" + "deploy": "vite build && vite gh-pages -d build -t true" }, "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", @@ -26,7 +26,7 @@ "type": "module", "dependencies": { "bootstrap": "5.3.2", - "gh-pages": "^6.1.0", + "gh-pages": "^6.1.1", "mdsvex": "^0.11.0", "sass": "^1.69.4", "svelte-preprocess": "^5.0.4" diff --git a/src/routes/+layout.js b/src/routes/+layout.js new file mode 100644 index 0000000..05d87e2 --- /dev/null +++ b/src/routes/+layout.js @@ -0,0 +1 @@ +export const prerender = true \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index dc2a41d..d0a9ea1 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -21,7 +21,6 @@ theme = window.localStorage.getItem('theme'); theme ? setTheme(theme) : setTheme('forest') }) - export const prerender = true;