Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger authored Nov 17, 2023
1 parent ae9d712 commit 42fbe40
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

strategy:
matrix:
#configuration: [Debug, Release]
configuration: [Debug, Release]
targetplatform: [x86, x64]

runs-on: windows-latest # For a list of available runner types, refer to
Expand Down Expand Up @@ -103,25 +103,24 @@ jobs:
- name: Restore the Wpf application to populate the obj folder
run: msbuild $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier=$env:RuntimeIdentifier
env:
#Configuration: ${{ matrix.configuration }}
Configuration: Debug
RuntimeIdentifier: win-${{ matrix.targetplatform }}

# OLD: 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 = Join-Path -Path $env:Wap_Project_Directory -ChildPath $env:SigningCertificate
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
# NEW: Decode the Base64 encoded Pfx
#- name: Decode the 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
# $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath $env:SigningCertificate
# [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)

# NEW: 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)
# OLD: Create the app package by building and packaging the Windows Application Packaging project
#- name: Create the app package
# run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
Expand All @@ -137,7 +136,6 @@ jobs:
env:
AppxBundle: Never
BuildMode: SideloadOnly
#Configuration: ${{ matrix.configuration }}
Configuration: Debug
TargetPlatform: ${{ matrix.targetplatform }}

Expand Down

0 comments on commit 42fbe40

Please sign in to comment.