1313 strategy :
1414 fail-fast : true
1515 matrix :
16- php : [7.4 ]
16+ php : [8.0 ]
1717
1818 steps :
1919 - name : Checkout
3636 ini-values : post_max_size=56M, short_open_tag=On # optional, setup php.ini configuration
3737 coverage : none # optional, setup coverage driver: xdebug, none
3838
39+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
40+ # Docs: https://getcomposer.org/doc/articles/scripts.md
41+
3942 - name : Install dependencies # eg: v1.0.3
4043 run : |
4144 echo $RELEASE_TAG
@@ -44,15 +47,13 @@ jobs:
4447 echo "release tag: ${tag1}"
4548 composer update --no-progress
4649
47- # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
48- # Docs: https://getcomposer.org/doc/articles/scripts.md
49-
50- # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#steps-context
51- # - name: Generate changelog file
52- # id: changelog
53- # run: |
54- # php bin/kite gh cl prev $RELEASE_TAG --style gh-release --no-merges --fetch-tags --unshallow --file tmp/changelog-${RELEASE_TAG}.md
55- # cat tmp/changelog-${RELEASE_TAG}.md
50+ # more see https://github.com/inhere/kite
51+ - name : Generate changelog file
52+ id : changelog
53+ run : |
54+ wget -c -q https://github.com/inhere/kite/releases/latest/download/kite.phar
55+ php kite.phar git cl prev last --style gh-release --no-merges --fetch-tags --unshallow --file changelog.md
56+ cat changelog.md
5657
5758 # https://github.com/meeDamian/github-release
5859# - name: Create release and upload assets
7374 with :
7475 name : ${{ env.RELEASE_TAG }}
7576 tag_name : ${{ env.RELEASE_TAG }}
76- # body_path: tmp/ changelog-${{ env.RELEASE_TAG }} .md
77+ body_path : changelog.md
7778 # files: kite-${{ env.RELEASE_TAG }}.phar
7879 env :
7980 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments