From f2935f3c1c552cb530581854bc35f45d7502ede0 Mon Sep 17 00:00:00 2001 From: imsyy Date: Fri, 10 May 2024 16:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8E=20ci:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 230ae57b..fb1c625a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,16 +47,14 @@ jobs: with: name: SPlayer-dev path: dist - # 自动生成标签 - - name: Autotag - run: | - $tag = "v$(date +'%Y%m%d%H%M%S')" - git tag $tag - git push origin $tag # 创建 GitHub Release - name: Release uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/v') with: + tag_name: ${{ github.ref }} + name: ${{ github.ref }}-rc + body: This version is still under development, currently only provides windows version, non-developers please do not use! draft: false prerelease: true files: dist/*.exe