diff --git a/.github/workflows/callable-test-core-build-process.yml b/.github/workflows/callable-test-core-build-process.yml index 4f97881bdd85d..60d97be95811e 100644 --- a/.github/workflows/callable-test-core-build-process.yml +++ b/.github/workflows/callable-test-core-build-process.yml @@ -68,16 +68,16 @@ jobs: - name: Ensure version-controlled files are not modified or deleted during building run: git diff --exit-code + - name: Create ZIP of built files + if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }} + run: zip -r wordpress.zip build/. + - name: Clean after building to run from ${{ inputs.directory }} run: npm run grunt clean${{ inputs.directory == 'src' && ' -- --dev' || '' }} - name: Ensure version-controlled files are not modified or deleted during cleaning run: git diff --exit-code - - name: Create ZIP of built files - if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }} - run: zip -r wordpress.zip build/. - - name: Upload ZIP as a GitHub Actions artifact uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}