77
88jobs :
99 release :
10- name : Test on php ${{ matrix.php}}
10+ name : Tag release
1111 runs-on : ubuntu-latest
1212 timeout-minutes : 10
13- strategy :
14- fail-fast : true
15- matrix :
16- php : [8.1]
1713
1814 steps :
1915 - name : Checkout
@@ -27,31 +23,11 @@ jobs:
2723 echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
2824 echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV
2925
30- # usage refer https://github.com/shivammathur/setup-php
31- - name : Setup PHP
32- timeout-minutes : 5
33- uses : shivammathur/setup-php@v2
34- with :
35- php-version : ${{ matrix.php}}
36- tools : pecl, php-cs-fixer, phpunit
37- extensions : mbstring, fileinfo, openssl # , swoole-4.4.19 #optional, setup extensions
38- ini-values : post_max_size=56M, short_open_tag=On # optional, setup php.ini configuration
39- coverage : none # optional, setup coverage driver: xdebug, none
40-
41- - name : Install dependencies # eg: v1.0.3
42- run : |
43- echo $RELEASE_TAG
44- echo $RELEASE_NAME
45- tag1=${GITHUB_REF#refs/*/}
46- echo "release tag: ${tag1}"
47- composer update --no-progress
48-
49- - name : Generate changelog file
50- id : changelog
26+ - name : Generate changelog
5127 run : |
52- wget -c -q https://github.com/inhere/kite /releases/latest/download/kite.phar
53- php kite.phar git cl prev last --style gh-release --no-merges --fetch-tags --file changelog.md
54- cat changelog.md
28+ curl https://github.com/gookit/gitw /releases/latest/download/chlog-linux-amd64 -L -o /usr/local/bin/chlog
29+ chmod a+x /usr/local/bin/chlog
30+ chlog -c .github/ changelog.yml -o changelog.md prev last
5531
5632 # https://github.com/softprops/action-gh-release
5733 - name : Create release and upload assets
0 commit comments