@@ -50,16 +50,11 @@ jobs:
50
50
51
51
strategy :
52
52
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
57
55
58
56
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.
63
58
64
59
steps :
65
60
- name : Checkout
@@ -87,26 +82,15 @@ jobs:
87
82
env :
88
83
Configuration : ${{ matrix.configuration }}
89
84
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
-
97
85
# Create the app package by building and packaging the Windows Application Packaging project
98
86
- 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
100
88
env :
101
89
Appx_Bundle : Always
102
90
Appx_Bundle_Platforms : x86|x64
103
91
Appx_Package_Build_Mode : StoreUpload
104
92
Configuration : ${{ matrix.configuration }}
105
93
106
- # Remove the pfx
107
- - name : Remove the pfx
108
- run : Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
109
-
110
94
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
111
95
- name : Upload build artifacts
112
96
uses : actions/upload-artifact@v4
0 commit comments