26
26
strategy :
27
27
matrix :
28
28
configuration : [Debug]
29
- platform : [x64,x86,ARM64 ]
29
+ platform : [x64, x86, arm64 ]
30
30
31
31
runs-on : windows-latest
32
32
env :
65
65
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
66
66
$certificatePath = "GitHubActionsWorkflow.pfx"
67
67
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
68
- - name : Remove the pfx
69
- run : |
70
- ls
68
+
71
69
- name : Create the app package
72
70
run : msbuild $env:Solution_Name/$env:Solution_Name.csproj /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=../GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
73
71
env :
@@ -76,14 +74,22 @@ jobs:
76
74
Appx_Package_Dir : ..\Packages\
77
75
Configuration : ${{ matrix.configuration }}
78
76
Platform : ${{ matrix.platform }}
77
+
78
+ - name : Get Version
79
+ run : |
80
+ [xml]$proj = Get-Content $env:Solution_Name/Package.appxmanifest
81
+ $v = $proj.Package.Identity.Version
82
+ echo "VERSION=$v" >> $env:GITHUB_ENV
79
83
80
84
- name : Remove the pfx
81
85
run : |
82
86
Remove-Item -path GitHubActionsWorkflow.pfx
83
- ls
84
87
85
88
- name : Upload MSIX package
86
89
uses : actions/upload-artifact@v4
87
90
with :
88
- name : ${{ env.Solution_Name }}_${{ matrix.platform }}_${{ matrix.configuration }}
89
- path : Packages
91
+ name : ${{ env.Solution_Name }}_${{ env.VERSION }}_${{ matrix.platform }}_${{ matrix.configuration }}
92
+ path : |
93
+ Packages/${{ env.Solution_Name }}*/*.*
94
+ Packages/${{ env.Solution_Name }}*/Add-AppDevPackage.resources
95
+ Packages/${{ env.Solution_Name }}*/Dependencies/${{ matrix.platform }}/*.*
0 commit comments