@@ -40,36 +40,19 @@ jobs:
40
40
- name : Setup MSBuild.exe
41
41
uses : microsoft/setup-msbuild@v1.0.2
42
42
43
- # Restore the application to populate the obj folder with RuntimeIdentifiers
44
- - name : Restore the application
45
- run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
46
- env :
47
- Configuration : ${{ matrix.configuration }}
48
-
49
- # Decode the base 64 encoded pfx and save the Signing_Certificate
50
- - name : Decode the pfx
51
- run : |
52
- $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
53
- $certificatePath = "GitHubActionsWorkflow.pfx"
54
- [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
55
-
56
43
# Create the app package by building and packaging the project
57
44
- name : Create the app package
58
- run : msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform= $env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=${{ github.workspace }}\GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir"
45
+ run : dotnet publish -r win- $env:Platform -p:PublishSingleFile=true --self-contained true /p:WindowsAppSDKSelfContained=true /p:PublishReadyToRun=true
59
46
env :
60
47
Appx_Bundle : Never
61
48
Appx_Package_Build_Mode : SideloadOnly
62
49
Appx_Package_Dir : Packages/
63
50
Configuration : ${{ matrix.configuration }}
64
51
Platform : ${{ matrix.platform }}
65
52
66
- # Remove the pfx
67
- - name : Remove the pfx
68
- run : Remove-Item -path GitHubActionsWorkflow.pfx
69
-
70
53
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
71
54
- name : Upload MSIX package
72
55
uses : actions/upload-artifact@v2
73
56
with :
74
- name : MSIX Package
75
- path : Crimson\Packages \
57
+ name : Package
58
+ path : Crimson\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish \
0 commit comments