Update workflows

This commit is contained in:
BlossomiShymae
2024-08-09 07:25:32 -05:00
parent ee8976c293
commit 8a012ff92d

View File

@@ -22,7 +22,10 @@ jobs:
run: dotnet publish Needlework.Net.Desktop -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false run: dotnet publish Needlework.Net.Desktop -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false
- name: Version - name: Version
shell: powershell shell: powershell
run: $xml = [xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj); echo ($xml.Project.PropertyGroup).AssemblyVersion >> $env.VERSION; run: |
$xml = [xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj)
"{VERSION}={($xml.Project.PropertyGroup).AssemblyVersion}" >> "$env:GITHUB_ENV"
echo $env:VERSION
- name: Zip - name: Zip
run: 7z a -tzip NeedleworkDotNet-win-x64.zip ./Publish/* README.md LICENSE run: 7z a -tzip NeedleworkDotNet-win-x64.zip ./Publish/* README.md LICENSE
- name: Release - name: Release