diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60e95dc..c11a1be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,16 +75,16 @@ jobs: RuntimeIdentifier: win-${{ matrix.targetplatform }} # Decode the Base64 encoded Pfx - # - name: Decode the Pfx - # run: | - # $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") - # $currentDirectory = Get-Location - # $certificatePath = Join-Path -Path $currentDirectory -ChildPath $env:Wap_Project_Directory -AdditionalChildPath $env:SigningCertificate - # [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) + - name: Decode the Pfx + run: | + $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") + $currentDirectory = Get-Location + $certificatePath = Join-Path -Path $currentDirectory -ChildPath $env:Wap_Project_Directory -AdditionalChildPath $env:SigningCertificate + [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) # Build the Windows Application Packaging project - name: Build the Windows Application Packaging Project (wapproj) - run: msbuild $env:Solution_Path /p:Platform=$env:TargetPlatform /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:BuildMode /p:AppxBundle=$env:AppxBundle #/p:PackageCertificateKeyFile=$env:SigningCertificate /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} + run: msbuild $env:Solution_Path /p:Platform=$env:TargetPlatform /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:BuildMode /p:AppxBundle=$env:AppxBundle /p:PackageCertificateKeyFile=$env:SigningCertificate /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} env: AppxBundle: Never BuildMode: SideloadOnly @@ -92,8 +92,8 @@ jobs: TargetPlatform: ${{ matrix.targetplatform }} # Remove the .pfx - # - name: Remove the .pfx - # run: Remove-Item -path $env:Wap_Project_Directory\$env:SigningCertificate + - name: Remove the .pfx + run: Remove-Item -path $env:Wap_Project_Directory\$env:SigningCertificate # Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact - name: Upload build artifacts