From a56f18e250770bbcf7d9c66cb84309333c8079f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 8 Jan 2026 22:14:35 +0000 Subject: [PATCH 1/3] Initial plan From 215b609e012561fcf82561ec0a8f119b5a19f99c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 8 Jan 2026 22:35:45 +0000 Subject: [PATCH 2/3] Fix deploy staging workflow to align with release pipeline Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- .github/workflows/deploy_staging.yml | 34 ++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_staging.yml b/.github/workflows/deploy_staging.yml index 82ce92c..290ff7e 100644 --- a/.github/workflows/deploy_staging.yml +++ b/.github/workflows/deploy_staging.yml @@ -70,17 +70,43 @@ jobs: - name: Build deployment package id: build run: | - chmod +x scripts/release/package_extension.py + set -euo pipefail VERSION="${{ inputs.version }}" if [ -z "${VERSION}" ]; then VERSION=$(grep -oP '\K[^<]+' src/templates/templateDetails.xml | head -n 1) fi - python3 scripts/release/package_extension.py dist "${VERSION}" + REPO_NAME="${{ github.event.repository.name }}" + DIST_DIR="${GITHUB_WORKSPACE}/dist" + mkdir -p "${DIST_DIR}" - ZIP_FILE=$(ls dist/*.zip | head -n 1) - echo "package=${ZIP_FILE}" >> "$GITHUB_OUTPUT" + # Use 'staging' suffix for staging deployments + ZIP="${REPO_NAME}-${VERSION}-staging.zip" + + # Create ZIP with development artifact exclusions + # Zip only the contents of the src folder (not the src/ folder itself) + # This creates a ZIP with extension files at the root level for direct installation + cd src + zip -r -X "${DIST_DIR}/${ZIP}" . \ + -x ".git/**" \ + -x ".github/**" \ + -x ".DS_Store" \ + -x "__MACOSX/**" \ + -x "node_modules/**" \ + -x "vendor/**" \ + -x "tests/**" \ + -x "Tests/**" \ + -x ".phpstan.cache/**" \ + -x ".psalm/**" \ + -x ".rector/**" \ + -x "phpmd-cache/**" \ + -x ".php-cs-fixer.cache" \ + -x ".phplint-cache" \ + -x "*.log" + cd .. + + echo "package=${DIST_DIR}/${ZIP}" >> "$GITHUB_OUTPUT" echo "version=${VERSION}" >> "$GITHUB_OUTPUT" - name: Validate secrets for ${{ inputs.environment }} From cf2990c6bed808b49fcb2c93968bf7c00d591d6d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 8 Jan 2026 22:36:52 +0000 Subject: [PATCH 3/3] Add comment clarifying Python setup purpose Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- .github/workflows/deploy_staging.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_staging.yml b/.github/workflows/deploy_staging.yml index 290ff7e..4e4aacf 100644 --- a/.github/workflows/deploy_staging.yml +++ b/.github/workflows/deploy_staging.yml @@ -57,6 +57,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.x' + # Python is required for validation scripts - name: Run pre-deployment validations run: |