13
13
strategy :
14
14
fail-fast : true
15
15
matrix :
16
- php : [7.4 ]
16
+ php : [8.0 ]
17
17
18
18
steps :
19
19
- name : Checkout
@@ -40,23 +40,23 @@ jobs:
40
40
run : |
41
41
tag1=${GITHUB_REF#refs/*/}
42
42
echo "release tag: ${tag1}"
43
- composer install --no-progress --no-suggest
43
+ composer install --no-progress
44
44
45
- # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
46
- # Docs: https://getcomposer.org/doc/articles/scripts.md
47
-
48
- # - name: Build phar and send to github assets
49
- # run: |
50
- # echo $RELEASE_TAG
51
- # echo $RELEASE_NAME
52
- # php -d phar.readonly=0 bin/kite phar:pack -o kite-${RELEASE_TAG}.phar --no-progress
53
- # php kite-${RELEASE_TAG}.phar -V
45
+ # more see https://github.com/inhere/kite
46
+ - name : Generate changelog file
47
+ id : changelog
48
+ run : |
49
+ wget -c -q https://github.com/inhere/kite/releases/latest/download/kite.phar
50
+ php kite.phar git cl prev last --style gh-release --no-merges --fetch-tags --unshallow --file changelog.md
51
+ cat changelog.md
54
52
55
- # https://github.com/actions/create-release
56
- - uses : meeDamian/github-release@2.0
53
+ # https://github.com/softprops/action-gh-release
54
+ - name : Create release and upload assets
55
+ uses : softprops/action-gh-release@v1
57
56
with :
58
- gzip : false
59
- token : ${{ secrets.GITHUB_TOKEN }}
60
- tag : ${{ env.RELEASE_TAG }}
61
57
name : ${{ env.RELEASE_TAG }}
62
- # files: kite-${{ env.RELEASE_TAG }}.phar
58
+ tag_name : ${{ env.RELEASE_TAG }}
59
+ body_path : changelog.md
60
+ env :
61
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
+ # GITHUB_REPOSITORY: my_gh_org/my_gh_repo
0 commit comments