Skip to content

Commit 8f8a2c9

Browse files
committed
chore(phar): optimize size of artifact build
1 parent b52862e commit 8f8a2c9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/php-package.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,18 @@ jobs:
5757
key: ${{ runner.os }}-composer
5858
- run: composer install
5959
shell: bash
60-
- run: composer test
61-
shell: bash
62-
- name: Download build package
63-
run: gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
60+
- name: Run Tests
61+
run: composer test
62+
- name: Prepare Release Artifact
6463
env:
6564
GH_TOKEN: ${{ github.token }}
66-
- name: Build package
67-
run: |
65+
run: |
66+
composer install --no-dev
67+
gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
6868
chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
6969
./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2jsonl
70-
- uses: actions/upload-artifact@v4
70+
- name: Upload Release Artifact
71+
uses: actions/upload-artifact@v4
7172
with:
7273
name: build-${{ github.sha }}-${{ matrix.php-version }}
7374
path: mysql2jsonl

0 commit comments

Comments
 (0)