diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..39737e7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build + +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install + run: npm install + + - name: Lint + run: npm run lint diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 5ebbc88..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build and deploy - -permissions: - contents: write - -on: - push: - branches: [ master ] - workflow_dispatch: - -jobs: - build-and-deploy: - concurrency: ci-${{ github.ref }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install and Build - run: | - npm install - NODE_ENV=production npm run build - - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: build diff --git a/.gitignore b/.gitignore index e876885..b4feefe 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ vite.config.ts.timestamp-* /tailwind.css *.svelte-kit /.vite +/public \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3bb7a54..2e35d51 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.3", "svelte": "5.0.0-next.54", - "svelte-adapter-ghpages": "^0.2.2", "svelte-check": "^3.6.0", "tailwindcss": "^3.4.3", "tslib": "^2.4.1", @@ -754,15 +753,6 @@ "@sveltejs/kit": "^2.0.0" } }, - "node_modules/@sveltejs/adapter-static": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-3.0.1.tgz", - "integrity": "sha512-6lMvf7xYEJ+oGeR5L8DFJJrowkefTK6ZgA4JiMqoClMkKq0s6yvsd3FZfCFvX1fQ0tpCD7fkuRVHsnUVgsHyNg==", - "dev": true, - "peerDependencies": { - "@sveltejs/kit": "^2.0.0" - } - }, "node_modules/@sveltejs/kit": { "version": "2.5.7", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.5.7.tgz", @@ -2653,21 +2643,6 @@ "node": ">=18" } }, - "node_modules/svelte-adapter-ghpages": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/svelte-adapter-ghpages/-/svelte-adapter-ghpages-0.2.2.tgz", - "integrity": "sha512-1eQFGK7UJ3qZbnv8mLvlUbRh0JtD8Mqp3LWRzwOfL+aL4y8SiGfcr+8P/iRQ69v+hOyC6cZ2cqB7o8g97ofWjA==", - "dev": true, - "dependencies": { - "@sveltejs/adapter-static": "^2.0.0 || ^3.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "@sveltejs/kit": "^1.0.0 || ^2.0.0" - } - }, "node_modules/svelte-check": { "version": "3.6.9", "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.6.9.tgz", diff --git a/package.json b/package.json index 40d94df..1e7228d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.3", "svelte": "5.0.0-next.54", - "svelte-adapter-ghpages": "^0.2.2", "svelte-check": "^3.6.0", "tailwindcss": "^3.4.3", "tslib": "^2.4.1", diff --git a/src/routes/+layout.js b/src/routes/+layout.js index 4ba752b..e69de29 100644 --- a/src/routes/+layout.js +++ b/src/routes/+layout.js @@ -1 +0,0 @@ -export const prerender = process.env.NODE_ENV === 'production' ? true : false; diff --git a/src/routes/404.svelte b/src/routes/404.svelte deleted file mode 100644 index 385b2e4..0000000 --- a/src/routes/404.svelte +++ /dev/null @@ -1,4 +0,0 @@ -

404

-
-

Not Found

-
diff --git a/static/.nojekyll b/static/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/svelte.config.js b/svelte.config.js index d67ad19..7cfcf0f 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,5 @@ import adapter from "@sveltejs/adapter-auto" -import adapterGhpages from "svelte-adapter-ghpages"; +// import adapterGhpages from "svelte-adapter-ghpages"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" /** @type {import('@sveltejs/kit').Config} */ @@ -23,17 +23,18 @@ const config = { // Use different adapters based on the environment. // For GitHub Pages deployment, use svelte-adapter-ghpages. // For local development, you can use a different adapter like @sveltejs/adapter-static or any other suitable one. - adapter: process.env.NODE_ENV === 'production' ? adapterGhpages({ - pages: 'build', - assets: 'build', - fallback: null - }) : adapter(), - prerender: { - entries: [] - }, - paths: { - base: process.env.NODE_ENV === 'production' ? "/BreakOften" : "", - }, + adapter: adapter() + // adapter: process.env.NODE_ENV === 'production' ? adapterGhpages({ + // pages: 'build', + // assets: 'build', + // fallback: null + // }) : adapter(), + // prerender: { + // entries: [] + // }, + // paths: { + // base: process.env.NODE_ENV === 'production' ? "/BreakOften" : "", + // }, }, }