File tree 2 files changed +41
-5
lines changed
2 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : PHP Package
2
+ env :
3
+ PHAR_TOOL_VERSION : 1.4.0
4
+ PHAR_TOOL_REPOSITORY : clue/phar-composer
2
5
on :
3
6
push :
4
7
pull_request :
@@ -26,19 +29,24 @@ jobs:
26
29
php-version :
27
30
- 8.2
28
31
- 8.3
29
- io-driver :
30
- - eio
31
- - uv
32
+ - 8.4
32
33
steps :
33
34
- uses : actions/checkout@v4
34
35
- name : Setup PHP
35
36
uses : shivammathur/setup-php@v2
36
37
with :
37
38
php-version : ${{ matrix.php-version }}
38
- extensions : ${{ matrix.io-driver }}
39
39
tools : composer:v2
40
40
coverage : xdebug3
41
41
- run : composer install
42
42
shell : bash
43
43
- run : composer test
44
44
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 2
2
push :
3
3
branches :
4
4
- main
5
+ env :
6
+ PHAR_TOOL_VERSION : 1.4.0
7
+ PHAR_TOOL_REPOSITORY : clue/phar-composer
5
8
6
9
permissions :
7
10
contents : write
15
18
release-please :
16
19
needs : verify-release
17
20
runs-on : ubuntu-24.04
21
+ outputs :
22
+ releases_created : ${{ steps.release.outputs.release_created }}
23
+ tag : ${{ steps.release.outputs.tag_name }}
18
24
steps :
19
25
- uses : googleapis/release-please-action@v4
26
+ id : release
20
27
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