Skip to content

Commit 00fbf17

Browse files
authored
Update dotnet-desktop.yml
1 parent ddbdbf5 commit 00fbf17

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,15 @@ jobs:
8787
env:
8888
Configuration: ${{ matrix.configuration }}
8989

90-
# Decode the base 64 encoded pfx and save the Signing_Certificate
91-
- name: Decode the pfx
92-
run: |
93-
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
94-
$certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
95-
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
96-
9790
# Create the app package by building and packaging the Windows Application Packaging project
9891
- name: Create the app package
99-
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 }}
92+
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle }}
10093
env:
10194
Appx_Bundle: Always
10295
Appx_Bundle_Platforms: x86|x64
10396
Appx_Package_Build_Mode: StoreUpload
10497
Configuration: ${{ matrix.configuration }}
10598

106-
# Remove the pfx
107-
- name: Remove the pfx
108-
run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
109-
11099
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
111100
- name: Upload build artifacts
112101
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)