diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 28dc1df..973d4f6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,6 +39,15 @@ jobs: git fetch origin ${{ github.ref_name }} git reset --hard origin/${{ github.ref_name }} git submodule update --init --recursive + # Copy sibling app models for cross-domain imports + for sibling in blog market cart events; do + rm -rf \$sibling/__init__.py \$sibling/models + if [ -d /root/rose-ash/\$sibling/models ]; then + mkdir -p \$sibling + cp /root/rose-ash/\$sibling/__init__.py \$sibling/ 2>/dev/null || touch \$sibling/__init__.py + cp -r /root/rose-ash/\$sibling/models \$sibling/models + fi + done " - name: Build and push image