File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 - name : Publish build with 'FolderProfile'
3636 run : dotnet publish -p:PublishProfile=FolderProfile
3737
38+ - name : Get version text # 根据version.txt文件获取版本号
39+ shell : pwsh
40+ run : |
41+ $content = Get-Content -Path "${{ github.workspace }}\version.txt" -Raw
42+ echo "VERSION=$content" >> $env:GITHUB_ENV
43+
3844 - name : Upload Artifact
3945 uses : actions/upload-artifact@v4
4046 with :
41- name : app- ${{ matrix.profile }}
47+ name : Release-V ${{ env.VERSION }}
4248 path : ${{ github.workspace }}\TimedPower\bin\Release\net8.0-windows10.*\publish\**
Original file line number Diff line number Diff line change 1+ 更新版本时,版本号需要更新的文件:
2+
3+ ``` path
4+ /version.txt
5+ /TimedPower/TimedPower.csproj
6+ /nsis/setupScript.nsi
7+ ```
Original file line number Diff line number Diff line change 1+ 2.9.7.20260330
You can’t perform that action at this time.
0 commit comments