fix release step on CI

This commit is contained in:
Pig Fang 2020-10-13 09:46:24 +08:00
parent 3146144733
commit 6bc5d4468d
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -24,6 +24,9 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Upload release asset
id: upload_release_asset
uses: actions/upload-release-asset@v1
@ -31,6 +34,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./blessing-skin-server-${{ github.ref }}.zip
asset_name: blessing-skin-server-${{ github.ref }}.zip
asset_path: ./blessing-skin-server-${{ steps.get_version.outputs.VERSION }}.zip
asset_name: blessing-skin-server-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip