diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca3f68d..e135d7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,8 +43,15 @@ jobs: tools/setup-wechat-devtools-node - name: Delete unused file + if: startsWith(github.ref, 'refs/tags/') run: | sudo rm -rf cache tmp + cd ../ + mv wechat-devtools '${{ env.name }}' + mkdir -p wechat-devtools + mv '${{ env.name }}' wechat-devtools + env: + name: 'release-${{ github.ref_name }}' - name: Release uses: fnkr/github-action-ghr@v1