From e5baf58597d02c44774a81c8078e616173057bda Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 30 Dec 2024 16:53:18 +0800
Subject: [PATCH] fix: fix the issue of input value invalid.
---
.github/workflows/publish.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 9d8d097..05c9b28 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -39,17 +39,17 @@ jobs:
Compress-Archive -Path $files.FullName -DestinationPath ./upload/Ursa.Demo.Desktop.win-x64.zip
- name: Enable Native AOT in .csproj
- if: ${{ github.event.inputs.include_aot == true }}
+ if: ${{ github.event.inputs.include_aot == 'true' }}
run: |
sed -i 's##true#' demo/Ursa.Demo.Desktop/Ursa.Demo.Desktop.csproj
sed -i 's##true#' demo/Ursa.Demo.Desktop/Ursa.Demo.Desktop.csproj
- name: Publish win-x64 AOT
- if: ${{ github.event.inputs.include_aot == true }}
+ if: ${{ github.event.inputs.include_aot == 'true' }}
run: dotnet publish demo/Ursa.Demo.Desktop -r win-x64 -c Release -o ./publish/win64-aot
- name: Zip win-x64 AOT
- if: ${{ github.event.inputs.include_aot == true }}
+ if: ${{ github.event.inputs.include_aot == 'true' }}
run: |
$files = Get-ChildItem -Path ./publish/win64-aot/* -Recurse -Exclude *.pdb
Compress-Archive -Path $files.FullName -DestinationPath ./upload/Ursa.Demo.Desktop.win-x64.NativeAOT.zip