File tree Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 11name : PHP Package
2+ env :
3+ PHAR_TOOL_VERSION : 1.4.0
4+ PHAR_TOOL_REPOSITORY : clue/phar-composer
25on :
36 push :
47 pull_request :
@@ -26,19 +29,24 @@ jobs:
2629 php-version :
2730 - 8.2
2831 - 8.3
29- io-driver :
30- - eio
31- - uv
32+ - 8.4
3233 steps :
3334 - uses : actions/checkout@v4
3435 - name : Setup PHP
3536 uses : shivammathur/setup-php@v2
3637 with :
3738 php-version : ${{ matrix.php-version }}
38- extensions : ${{ matrix.io-driver }}
3939 tools : composer:v2
4040 coverage : xdebug3
4141 - run : composer install
4242 shell : bash
4343 - run : composer test
4444 shell : bash
45+ - name : Download build package
46+ run : gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
47+ shell : bash
48+ - name : Build package
49+ run : |
50+ chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
51+ ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2json
52+ shell : bash
Original file line number Diff line number Diff line change 22 push :
33 branches :
44 - main
5+ env :
6+ PHAR_TOOL_VERSION : 1.4.0
7+ PHAR_TOOL_REPOSITORY : clue/phar-composer
58
69permissions :
710 contents : write
1518 release-please :
1619 needs : verify-release
1720 runs-on : ubuntu-24.04
21+ outputs :
22+ releases_created : ${{ steps.release.outputs.release_created }}
23+ tag : ${{ steps.release.outputs.tag_name }}
1824 steps :
1925 - uses : googleapis/release-please-action@v4
26+ id : release
2027 with :
21- release-type : php
28+ release-type : php
29+ upload_phar :
30+ needs : release-please
31+ runs-on : ubuntu-24.04
32+ if : ${{ needs.release-please.outputs.releases_created == true }}
33+ steps :
34+ - uses : actions/checkout@v4
35+ with :
36+ ref : ${{ needs.release-please.outputs.tag }}
37+ - name : Setup PHP
38+ uses : shivammathur/setup-php@v2
39+ with :
40+ php-version : 8.2
41+ tools : composer:v2
42+ - name : Download build package
43+ run : gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
44+ - name : Build package
45+ run : |
46+ chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
47+ ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2json
48+ - name : Upload package
49+ run : gh release upload ${{ needs.release-please.outputs.tag }} mysql2json
You can’t perform that action at this time.
0 commit comments