Make WordPress Core

Changeset 57174


Ignore:
Timestamp:
12/08/2023 04:05:31 PM (11 months ago)
Author:
zieladam
Message:

Build/Test Tools: Zip WordPress files before npm run clean

Fixes a problem in WordPress artifact upload pipeline. The callable-test-core-build-process.yml used to zip the WordPress dist directory after npm run grunt clean runs, producing an empty zip file. This commit moves the zip before the cleanup task.

Follow up to [57124].

Props ockham, dmsnell.
See #59416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/callable-test-core-build-process.yml

    r57124 r57174  
    6969        run: git diff --exit-code
    7070
     71      - name: Create ZIP of built files
     72        if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}
     73        run: zip -r wordpress.zip build/.
     74
    7175      - name: Clean after building to run from ${{ inputs.directory }}
    7276        run: npm run grunt clean${{ inputs.directory == 'src' && ' -- --dev' || '' }}
     
    7478      - name: Ensure version-controlled files are not modified or deleted during cleaning
    7579        run: git diff --exit-code
    76 
    77       - name: Create ZIP of built files
    78         if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}
    79         run: zip -r wordpress.zip build/.
    8080
    8181      - name: Upload ZIP as a GitHub Actions artifact
Note: See TracChangeset for help on using the changeset viewer.