Skip to content

Commit 8909167

Browse files
committed
updeate release action script
1 parent c4a1c35 commit 8909167

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.3]
16+
php: [8.0]
1717

1818
steps:
1919
- name: Checkout
@@ -42,21 +42,21 @@ jobs:
4242
echo "release tag: ${tag1}"
4343
composer install --no-progress --no-suggest
4444
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
5452
55-
# https://github.com/actions/create-release
56-
- uses: meeDamian/[email protected]
53+
# https://github.com/softprops/action-gh-release
54+
- name: Create release and upload assets
55+
uses: softprops/action-gh-release@v1
5756
with:
58-
gzip: false
59-
token: ${{ secrets.GITHUB_TOKEN }}
60-
tag: ${{ env.RELEASE_TAG }}
6157
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

Comments
 (0)