Skip to content

Commit 8f2ad84

Browse files
authored
Update dotnet-desktop.yml
1 parent 7afaaeb commit 8f2ad84

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,11 @@ jobs:
5050

5151
strategy:
5252
matrix:
53-
configuration: [Debug, Release]
54-
55-
runs-on: windows-latest # For a list of available runner types, refer to
56-
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
53+
configuration: [Release]
54+
runs-on: windows-latest
5755

5856
env:
59-
Solution_Name: your-solution-name # Replace with your solution name, i.e. MyWpfApp.sln.
60-
Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
61-
Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
62-
Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
57+
Solution_Name: vector-editor # Replace with your solution name, i.e. MyWpfApp.sln.
6358

6459
steps:
6560
- name: Checkout
@@ -87,26 +82,15 @@ jobs:
8782
env:
8883
Configuration: ${{ matrix.configuration }}
8984

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-
9785
# Create the app package by building and packaging the Windows Application Packaging project
9886
- 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 }}
87+
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle
10088
env:
10189
Appx_Bundle: Always
10290
Appx_Bundle_Platforms: x86|x64
10391
Appx_Package_Build_Mode: StoreUpload
10492
Configuration: ${{ matrix.configuration }}
10593

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

0 commit comments

Comments
 (0)