From 7c311972b5979cbc1c3fdfd0c883fac8c6991bc3 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Thu, 12 Jun 2025 07:36:55 -0400 Subject: [PATCH] chore: update dotnet-desktop.yml for improved workflow configuration --- .github/workflows/dotnet-desktop.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 4f0da21..197fa13 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -50,24 +50,13 @@ jobs: env: Configuration: ${{ matrix.configuration }} - # Decode the base 64 encoded pfx and save the Signing_Certificate - - name: Decode the pfx - run: | - $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}") - $certificatePath = "GitHubActionsWorkflow.pfx" - [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) - # Create the app package by building and packaging the project - name: Create the app package - run: msbuild /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx - - # Remove the pfx - - name: Remove the pfx - run: Remove-Item -path GitHubActionsWorkflow.pfx + run: msbuild # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact - name: Upload MSIX package uses: actions/upload-artifact@v4 with: name: MSIX Package - path: ${{ env.Solution_Name }}\\AppPackages + path: ${{ env.Solution_Name }}\\bin