|
1 | | -# This workflow will build, sign, and package a WinUI 3 MSIX desktop application |
| 1 | +# This workflow will build and publish a WinUI 3 unpackaged desktop application |
2 | 2 | # built on .NET. |
3 | 3 |
|
4 | | -name: WinUI 3 MSIX app |
| 4 | +name: WinUI 3 unpackaged app |
5 | 5 |
|
6 | 6 | on: |
7 | 7 | push: |
@@ -52,30 +52,16 @@ jobs: |
52 | 52 | env: |
53 | 53 | Configuration: ${{ matrix.configuration }} |
54 | 54 |
|
55 | | - # Decode the base 64 encoded pfx and save the Signing_Certificate |
56 | | - - name: Decode the pfx |
57 | | - run: | |
58 | | - $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}") |
59 | | - $certificatePath = "GitHubActionsWorkflow.pfx" |
60 | | - [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) |
61 | | -
|
62 | | - # Create the app package by building and packaging the project |
63 | | - - name: Create the app package |
64 | | - run: msbuild $env:Edge /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 |
| 55 | + # Create the app by building and publishing the project |
| 56 | + - name: Create the app |
| 57 | + run: msbuild $env:Edge /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform |
65 | 58 | env: |
66 | | - Appx_Bundle: Never |
67 | | - Appx_Package_Build_Mode: SideloadOnly |
68 | | - Appx_Package_Dir: Packages\ |
69 | 59 | Configuration: ${{ matrix.configuration }} |
70 | 60 | Platform: ${{ matrix.platform }} |
71 | 61 |
|
72 | | - # Remove the pfx |
73 | | - - name: Remove the pfx |
74 | | - run: Remove-Item -path GitHubActionsWorkflow.pfx |
75 | | - |
76 | | - # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact |
77 | | - - name: Upload MSIX package |
| 62 | + # Upload the app |
| 63 | + - name: Upload app |
78 | 64 | uses: actions/upload-artifact@v4.5.0 |
79 | 65 | with: |
80 | | - name: Edge-nightly-build-${{ steps.date.outputs.date }} |
81 | | - path: ${{ github.workspace }}\\Packages |
| 66 | + name: Edge-${{ steps.date.outputs.date }} |
| 67 | + path: ${{ github.workspace }}\\bin\\win-${{ matrix.platform }}\\publish |
0 commit comments