mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
Update
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -23,20 +23,20 @@ jobs:
|
|||||||
run: dotnet build Needlework.Net.Desktop -c Release
|
run: dotnet build Needlework.Net.Desktop -c Release
|
||||||
- name: Publish
|
- name: Publish
|
||||||
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: Get Version
|
||||||
id: ver
|
id: version
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$xml=[xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj)
|
$xml=[xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj)
|
||||||
$ver=($xml.Project.PropertyGroup).AssemblyVersion
|
$ver=($xml.Project.PropertyGroup).AssemblyVersion
|
||||||
echo "VERSION=$ver" >> $env:GITHUB_OUTPUT
|
echo "VERSION=$ver" >> $env:GITHUB_OUTPUT
|
||||||
- name: Zip
|
- name: Zip Files
|
||||||
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
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: "Needlework.Net v${{ steps.ver.outputs.VERSION }}"
|
name: "Needlework.Net v${{ steps.version.outputs.VERSION }}"
|
||||||
prerelease: true
|
prerelease: false
|
||||||
tag_name: "${{ steps.ver.outputs.VERSION }}"
|
tag_name: "${{ steps.version.outputs.VERSION }}"
|
||||||
files: |
|
files: |
|
||||||
Publish/NeedleworkDotNet-win-x64.zip
|
NeedleworkDotNet-win-x64.zip
|
||||||
Reference in New Issue
Block a user