From 6d2780196dc582abdac33b86031d035c1bb4753a Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 21 Apr 2025 17:57:47 +0200 Subject: [PATCH] Build new page --- .github/workflows/build.yml | 15 +++++++++------ page/vite.config.ts | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27bd0c5f..6197a1af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -558,18 +558,21 @@ jobs: run: cp ./build/release/artifacts/test-sample.exe build/release/artifacts/root/filesys/c/ - name: Create Emulation Root zip - run: cd ./build/release/artifacts && zip -r "${{github.workspace}}/page/root.zip" ./root + run: cd ./build/release/artifacts && zip -r "${{github.workspace}}/page/public/root.zip" ./root - name: Copy Files run: | - cp ./build/release/artifacts/analyzer.js ./page/ - cp ./build/release/artifacts/analyzer.wasm ./page/ + cp ./build/release/artifacts/analyzer.js ./page/public/ + cp ./build/release/artifacts/analyzer.wasm ./page/public/ + + - name: Build Page + run: cd ./page && npm i && npm run build - name: Upload Page Artifacts uses: pyTooling/upload-artifact@v4 with: name: Page Artifacts - working-directory: page/ + working-directory: page/dist/ path: "*" deploy-page: @@ -586,7 +589,7 @@ jobs: uses: pyTooling/download-artifact@v4 with: name: Page Artifacts - path: ./page/ + path: ./page/dist/ - name: Setup Pages uses: actions/configure-pages@v5 @@ -594,7 +597,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./page + path: ./page/dist - name: Deploy to GitHub Pages id: deployment diff --git a/page/vite.config.ts b/page/vite.config.ts index 38a0f375..a5d7aaf2 100644 --- a/page/vite.config.ts +++ b/page/vite.config.ts @@ -5,6 +5,7 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ + base: '/emulator/', plugins: [react(), tailwindcss()], resolve: { alias: {