Fix deployment

This commit is contained in:
2023-08-06 19:42:51 +02:00
parent c0b8aae14c
commit 49cd349424
4 changed files with 5413 additions and 5426 deletions

View File

@@ -1,7 +1,7 @@
name: Deploy to GitHub Pages
on:
push:
branches: [main]
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
@@ -13,13 +13,17 @@ jobs:
with:
node-version: 18
- name: npm install
run: npm ci --legacy-peer-deps
run: npm ci
- name: npm build
run: npm run build
env:
BASE_PATH: '/matrix-kernel-filter-calculator'
run: |
npm run build
touch build/.nojekyll
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: public
path: 'build/'
deploy:
needs: build
permissions:

10816
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@
"cypress:open": "cypress open"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"cypress": "^10.3.1",
"prettier": "3.0.1",

View File

@@ -1,4 +1,6 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
const dev = process.argv.includes('dev');
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -6,7 +8,10 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter(),
paths: {
base: dev ? '' : process.env.BASE_PATH,
}
}
};