Fix deployment

This commit is contained in:
Maximilian Ammann 2022-04-25 21:17:50 +02:00
parent f0dcc2f3db
commit 69f245c205
3 changed files with 8 additions and 7 deletions

View File

@ -34,7 +34,7 @@ jobs:
- uses: ./.github/actions/webgpu
- uses: ./.github/actions/deploy
with:
source: web/web/dist/linux-demo/.
source: web/demo/dist/.
destination: webgpu
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
build-deploy-webgl:
@ -44,7 +44,7 @@ jobs:
- uses: ./.github/actions/webgl
- uses: ./.github/actions/deploy
with:
source: web/web/dist/linux-demo/.
source: web/demo/dist/.
destination: webgl
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
build-deploy-docs:

View File

@ -4,10 +4,11 @@
"description": "A maplibre demo",
"private": true,
"scripts": {
"clean": "rm -rf dist",
"start": "webpack-dev-server --mode=development",
"start-production": "npm run start -- --mode=production",
"build": "webpack --mode=development",
"build-production": "webpack --mode=production"
"start-production": "webpack-dev-server --mode=production",
"build": "npm run clean && webpack --mode=development",
"build-production": "npm run clean && webpack --mode=production"
},
"repository": {
"type": "git",

View File

@ -46,7 +46,7 @@ module.exports = (_env) => ({
extensions: ['.ts', '.js'],
},
plugins: [
new CopyPlugin({
/*new CopyPlugin({
patterns: [
// webpack
//{ from: "*.wasm", to: "[path][name][ext]", context: 'node_modules/maplibre_rs/dist/maplibre-rs/' },
@ -55,7 +55,7 @@ module.exports = (_env) => ({
{from: "*.wasm", to: "[path]maplibre[ext]", context: 'node_modules/maplibre_rs/dist/parcel-cjs/'},
{from: "*worker*", to: "[path]worker[ext]", context: 'node_modules/maplibre_rs/dist/parcel-cjs/'},
],
}),
}),*/
new HtmlWebpackPlugin({
title: 'maplibre demo',
}),