From 216bfb968d36bce5df05175cb0013a913378b71e Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Mon, 12 Aug 2024 17:26:50 +0200 Subject: [PATCH] fix typo, and move release asset to public dir This commit - - fixes a a typo in package.json (outDir) - sets the href of the zip file to ./ - moves the zip asset to the public dir. Note: public dir is a special dir which hosts files that would be served as is, so it makes sense to put the release for download there. --- .github/workflows/web-deploy.yml | 2 +- web/explorer/package.json | 2 +- web/explorer/src/components/NavBar.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 0d6f5f2c1..c29e71718 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -53,7 +53,7 @@ jobs: run: npm run build:bundle working-directory: ./web/explorer - name: Zip release bundle - run: zip -r capa-explorer-web.zip capa-explorer-web + run: zip -r public/capa-explorer-web.zip capa-explorer-web working-directory: ./web/explorer - name: Build run: npm run build diff --git a/web/explorer/package.json b/web/explorer/package.json index 695c08a1c..81e05df4c 100644 --- a/web/explorer/package.json +++ b/web/explorer/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "vite", "build": "vite build", - "build:bundle": "vite build --mode bundle --outDir=capa-exlorer-web", + "build:bundle": "vite build --mode bundle --outDir=capa-explorer-web", "preview": "vite preview", "test": "vitest", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", diff --git a/web/explorer/src/components/NavBar.vue b/web/explorer/src/components/NavBar.vue index 94d4b43ce..41df6cb95 100644 --- a/web/explorer/src/components/NavBar.vue +++ b/web/explorer/src/components/NavBar.vue @@ -9,7 +9,7 @@ import Menubar from "primevue/menubar";