From d6c65af206d061667425adb49e8818cedb6a191e Mon Sep 17 00:00:00 2001 From: CofCool Date: Fri, 13 May 2022 16:01:54 +0800 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 588cc7d..d6b3be8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,8 +27,9 @@ jobs: cp README.md package.json icon.png ${{ env.PLUGIN_NAME }} mv dist ${{ env.PLUGIN_NAME }} ls - echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)" - zip -r ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip ${{ env.PLUGIN_NAME }} + ver=`git tag --sort version:refname | tail -n 1` + zip -r ${{ env.PLUGIN_NAME }}-$ver.zip ${{ env.PLUGIN_NAME }} + echo "::set-output name=tag_name::$(echo $ver)" - name: Create Release uses: ncipollo/release-action@v1 id: create_release