Skip to content

Commit ccc083e

Browse files
committed
Update release.yml
1 parent 9c227db commit ccc083e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
run: |
3737
$manifestPath = "SourceServerManager/app.manifest"
3838
$version = "${{ steps.tag.outputs.version }}"
39-
$content = Get-Content $manifestPath -Raw
40-
$content = $content -replace 'version="[\d\.]+"', "version=`"$version`""
41-
Set-Content $manifestPath -Value $content -NoNewline
39+
[xml]$manifest = Get-Content $manifestPath
40+
$manifest.assembly.assemblyIdentity.SetAttribute("version", $version)
41+
$manifest.Save($manifestPath)
4242
echo "Updated app.manifest version to: $version"
4343
shell: pwsh
4444

0 commit comments

Comments
 (0)