@@ -42,31 +42,31 @@ runs:
4242 bash "${{ inputs.BUILD_SCRIPT_PATH }}"
4343 fi
4444
45- - name : Create theme build directory
46- shell : bash
47- run : |
48- mkdir -p /tmp/hello-theme-builds
49-
50- - name : Package theme
51- shell : bash
52- env :
53- PACKAGE_VERSION : ${{ inputs.PACKAGE_VERSION }}
54- run : |
55- # Create zip file with hello-theme naming (hardcoded, not from package.json)
56- zip -r "/tmp/hello-theme-builds/hello-theme-${PACKAGE_VERSION}.zip" . \
57- -x "node_modules/*" "test-results/*" "tests/*" ".git/*" "*.zip" \
58- "playwright-report/*" ".wp-env.json.*" ".wp-env"
59-
60- - name : Move build to workspace
45+ - name : Set build directory and zip paths
6146 shell : bash
6247 env :
6348 PACKAGE_VERSION : ${{ inputs.PACKAGE_VERSION }}
6449 run : |
65- mv "/tmp/hello-theme-builds/hello-theme-${PACKAGE_VERSION}.zip" \
66- "./hello-theme-${PACKAGE_VERSION}.zip"
50+ set -e
51+ BUILD_DIR="hello-elementor"
52+ BUILD_ZIP_PATH="hello-elementor.${PACKAGE_VERSION}.zip"
53+
54+ echo "Setting build paths:"
55+ echo " BUILD_DIR: ${BUILD_DIR}"
56+ echo " BUILD_ZIP_PATH: ${BUILD_ZIP_PATH}"
57+ echo " PACKAGE_VERSION: ${PACKAGE_VERSION}"
58+
59+ if [ ! -d "$BUILD_DIR" ]; then
60+ echo "❌ Build directory not found: $BUILD_DIR"
61+ echo "Available directories:"
62+ ls -la | head -20
63+ exit 1
64+ fi
65+
66+ echo "✅ Build directory found: $BUILD_DIR"
67+ echo "✅ Zip file: $BUILD_ZIP_PATH"
6768
68- echo "✅ Hello Elementor theme build complete: hello-theme-${PACKAGE_VERSION}.zip"
69- ls -la hello-theme-*.zip
69+ echo "BUILD_DIR=${BUILD_DIR}" >> $GITHUB_ENV
70+ echo "BUILD_ZIP_PATH=${BUILD_ZIP_PATH}" >> $GITHUB_ENV
7071
71- # Set build path for downstream actions
72- echo "BUILD_ZIP_PATH=hello-theme-${PACKAGE_VERSION}.zip" >> $GITHUB_ENV
72+ echo "✅ Environment variables set in GITHUB_ENV"
0 commit comments