@@ -44,27 +44,12 @@ jobs:
44
44
echo "release tag: ${tag1}"
45
45
composer update --no-progress
46
46
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
56
-
57
- # https://github.com/meeDamian/github-release
58
- # - name: Create release and upload assets
59
- # uses: meeDamian/[email protected]
60
- # with:
61
- # gzip: false
62
- # token: ${{ secrets.GITHUB_TOKEN }}
63
- # tag: ${{ env.RELEASE_TAG }}
64
- # name: ${{ env.RELEASE_TAG }}
65
- # body: |
66
- # ${{ steps.changelog.outputs.CHLOGBODY }}
67
- # files: kite-${{ env.RELEASE_TAG }}.phar
47
+ - name : Generate changelog file
48
+ id : changelog
49
+ run : |
50
+ wget -c -q https://github.com/inhere/kite/releases/latest/download/kite.phar
51
+ php kite.phar git cl last head --style gh-release --no-merges --fetch-tags --unshallow --file changelog.md
52
+ cat changelog.md
68
53
69
54
# https://github.com/softprops/action-gh-release
70
55
- name : Create release and upload assets
73
58
with :
74
59
name : ${{ env.RELEASE_TAG }}
75
60
tag_name : ${{ env.RELEASE_TAG }}
76
- # body_path: tmp/ changelog-${{ env.RELEASE_TAG }} .md
61
+ body_path : changelog.md
77
62
# files: kite-${{ env.RELEASE_TAG }}.phar
78
63
env :
79
64
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments