From 6e53d500b226145526d962ff4ee98fbb89a48fe1 Mon Sep 17 00:00:00 2001 From: inhere Date: Wed, 12 Aug 2020 16:27:11 +0800 Subject: [PATCH] fix some error for release script --- .github/workflows/release.yml | 8 +++----- README.zh-CN.md | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4e39d1..59e5be8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration coverage: none #optional, setup coverage driver: xdebug, none - - name: Install dependencies + - name: Install dependencies # eg: v1.0.3 run: | tag1=${GITHUB_REF#refs/*/} echo "release tag: ${tag1}" @@ -46,13 +46,11 @@ jobs: - name: Build phar and send to github assets run: | - tag=${GITHUB_REF:10} - echo "release tag: ${tag}" - php -d phar.readonly=0 bin/kite phar:pack -o kite-${tag}.phar + php -d phar.readonly=0 bin/kite phar:pack -o kite-${RELEASE_TAG}.phar --no-progress - uses: meeDamian/github-release@2.0 with: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ env.RELEASE_TAG }} name: ${{ env.RELEASE_NAME }} - files: kite-${tag}.phar + files: kite-${{ env.RELEASE_TAG }}.phar diff --git a/README.zh-CN.md b/README.zh-CN.md index 8deab91..5ac781c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -33,6 +33,10 @@ ln -s $PWD/bin/kite /usr/local/bin/kite chmod a+x bin/kite ``` +### 下载PHAR + +- https://github.com/inhere/kite/releases + ## 使用帮助 ```bash