mirror of
https://github.com/mschuepbach/matrix-kernel-filter-calculator.git
synced 2026-01-15 13:02:14 +01:00
Fix deployment
This commit is contained in:
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@@ -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
10816
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user