From ffd9b08acc481c53825427eb923d34a108ef7973 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:50:59 +0800 Subject: [PATCH] fix: fix the issue of input value invalid. --- .github/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f736ef2..fc634e3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,17 +44,17 @@ jobs: Compress-Archive -Path $files.FullName -DestinationPath ./upload/Semi.Avalonia.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/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj sed -i 's##true#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.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/Semi.Avalonia.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/Semi.Avalonia.Demo.Desktop.win-x64.NativeAOT.zip @@ -82,11 +82,11 @@ jobs: run: zip -j -r ./upload/Semi.Avalonia.Demo.Desktop.linux-x64.zip ./publish/linux64 -x "*.pdb" - name: Publish linux-x64 DRM - if: ${{ github.event.inputs.include_drm == true }} + if: ${{ github.event.inputs.include_drm == 'true' }} run: dotnet publish demo/Semi.Avalonia.Demo.Drm -r linux-x64 -c Release --sc /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true -o ./publish/drm - name: Zip linux-x64 DRM - if: ${{ github.event.inputs.include_drm == true }} + if: ${{ github.event.inputs.include_drm == 'true' }} run: zip -j -r ./upload/Semi.Avalonia.Demo.Drm.linux-x64.zip ./publish/drm -x "*.pdb" - name: Upload a Build Artifact