From c04ddcc21aae618d31111322d064df479f510d3c Mon Sep 17 00:00:00 2001 From: Joao Andre Date: Fri, 1 Mar 2024 11:38:27 -0300 Subject: [PATCH] chore: add frontend build step --- .github/workflows/build-and-release-dev.yml | 5 +++++ tools/release/build_package_structure.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release-dev.yml b/.github/workflows/build-and-release-dev.yml index 9cc11a7cff..da379c371c 100644 --- a/.github/workflows/build-and-release-dev.yml +++ b/.github/workflows/build-and-release-dev.yml @@ -110,6 +110,11 @@ jobs: run: | cp tools/gui/generate_pyi.py pyi_temp.py && pipenv run python pyi_temp.py && rm pyi_temp.py + - name: Build frontends + if: matrix.package == 'gui' + run: | + python tools/frontend/bundle_build.py + - name: Build Package Structure working-directory: ${{ steps.set-variables.outputs.package_dir }} run: | diff --git a/tools/release/build_package_structure.py b/tools/release/build_package_structure.py index fbe0960433..abb06b281f 100644 --- a/tools/release/build_package_structure.py +++ b/tools/release/build_package_structure.py @@ -29,6 +29,7 @@ shutil.move(file_name, _package_path) for file_name in os.listdir("../"): - if os.path.isdir(file_name): + _path = os.path.join("../", file_name) + if os.path.isdir(_path) or file_name == "version.json": continue - shutil.move(file_name, ".") + shutil.copy(_path, ".")