From 4326e146819b90dfa9130bd1ee440878aa6307f8 Mon Sep 17 00:00:00 2001 From: PuqiAR Date: Sat, 3 Jan 2026 22:29:15 +0800 Subject: [PATCH] [CI] again --- .gitea/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1afb3c9..f930c90 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -143,8 +143,16 @@ jobs: git checkout ${{ github.ref }} - name: 设置版本 - run: powershell -Command "if ('${{ github.event_name }}' -eq 'workflow_dispatch') { $VERSION = '${{ inputs.version }}' } else { $VERSION = '${{ github.ref }}' -replace 'refs/tags/', '' }; Write-Host '构建版本: $VERSION'; echo \"VERSION=$VERSION\" >> $env:GITHUB_ENV" - + run: | + powershell -Command " + if ('${{ github.event_name }}' -eq 'workflow_dispatch') { + `$VERSION = '${{ inputs.version }}' + } else { + `$VERSION = '${{ github.ref }}' -replace 'refs/tags/', '' + } + Write-Host \"构建版本: `$VERSION\" + echo \"VERSION=`$VERSION\" >> `$env:GITHUB_ENV + " - name: 构建项目 (Windows Native) run: | powershell -Command "