diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d1b4946..bcb6327 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,12 +42,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: build - env: - BASE_PATH: '/${{ github.event.repository.name }}' - run: | - pnpm run build - touch build/.nojekyll + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Build + run: pnpm run build - name: Upload Artifacts uses: actions/upload-pages-artifact@v1 @@ -59,18 +58,11 @@ jobs: needs: build runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Setup Pages - uses: actions/configure-pages@v3 - - name: Deploy id: deployment uses: actions/deploy-pages@v1 \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 3203d5f..863d8d8 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,8 +1,6 @@ import adapter from '@sveltejs/adapter-static' import { vitePreprocess } from '@sveltejs/kit/vite' -const dev = process.argv.includes('dev') - /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess @@ -11,9 +9,6 @@ const config = { kit: { adapter: adapter(), - paths: { - base: dev ? '' : process.env.BASE_PATH, - }, }, }