From 362729e3d627a9481be5d088505b037393867a17 Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Wed, 17 Jan 2024 15:45:30 +0200 Subject: [PATCH] fix: release build --- .github/workflows/production.yml | 5 +++++ scripts/create-release-assets.sh | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index fe78e598c..f7156a620 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -39,6 +39,11 @@ jobs: - name: Build run: | npm run generate + + - name: Reorganize Files + run: | + mkdir -p dist/bridge + mv dist/_nuxt dist/bridge/_nuxt - name: Deploy to Production uses: matter-labs/action-hosting-deploy@main diff --git a/scripts/create-release-assets.sh b/scripts/create-release-assets.sh index 8d1619275..2e4403a15 100644 --- a/scripts/create-release-assets.sh +++ b/scripts/create-release-assets.sh @@ -5,11 +5,17 @@ set -e # Run the first npm command and move folder npm run generate:node:memory +mkdir -p dist/bridge +mv dist/_nuxt dist/bridge/_nuxt mv .output/public ./dist-node-memory # Run the second npm command and move folder npm run generate:node:docker +mkdir -p dist/bridge +mv dist/_nuxt dist/bridge/_nuxt mv .output/public ./dist-node-docker # Run the final npm command npm run generate +mkdir -p dist/bridge +mv dist/_nuxt dist/bridge/_nuxt \ No newline at end of file