7
7
8
8
jobs :
9
9
release :
10
- name : Test on php ${{ matrix.php}}
10
+ name : Tag release
11
11
runs-on : ubuntu-latest
12
12
timeout-minutes : 10
13
- strategy :
14
- fail-fast : true
15
- matrix :
16
- php : [8.1]
17
13
18
14
steps :
19
15
- name : Checkout
@@ -27,31 +23,11 @@ jobs:
27
23
echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
28
24
echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV
29
25
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
51
27
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
55
31
56
32
# https://github.com/softprops/action-gh-release
57
33
- name : Create release and upload assets
0 commit comments