@@ -5,63 +5,65 @@ name: WinUI 3 unpackaged app
55
66on :
77 push :
8- branches : [ main ]
8+ branches : [main]
99 pull_request :
10- branches : [ main ]
10+ branches : [main]
1111
1212jobs :
13-
1413 build :
15-
1614 strategy :
1715 matrix :
1816 configuration : [Release]
1917 platform : [x64]
2018
21- runs-on : windows-latest # For a list of available runner types, refer to
22- # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
19+ runs-on :
20+ windows-latest # For a list of available runner types, refer to
21+ # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
2322
2423 env :
25- Solution_Name : Edge.sln # Replace with your solution name, i.e. App1.sln.
24+ Solution_Name : Edge.sln # Replace with your solution name, i.e. App1.sln.
2625
2726 steps :
27+ # Get current time
28+ - name : Get current time
29+ id : date
30+ run : echo "::set-output name=date::$(date +'%Y-%m-%d')"``
2831
29- # Get current time
30- - name : Get current time
31- id : date
32- run : echo "::set-output name=date::$(date +'%Y-%m-%d')"``
32+ - name : Checkout
33+ uses : actions/checkout@v4
34+ with :
35+ fetch-depth : 0
3336
34- - name : Checkout
35- uses : actions/checkout@v4
36- with :
37- fetch-depth : 0
37+ # Install the .NET Core workload
38+ - name : Install .NET Core
39+ uses : actions/setup-dotnet@v4
40+ with :
41+ dotnet-version : 9.0.x
3842
39- # Install the .NET Core workload
40- - name : Install .NET Core
41- uses : actions/setup-dotnet@v4
42- with :
43- dotnet-version : 9.0.x
43+ # Add NuGet Source
44+ - name : Add Toolkit Labs NuGet Source
45+ run : dotnet nuget add source --name "Toolkit Labs" --source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json
4446
45- # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
46- - name : Setup MSBuild.exe
47- uses : microsoft/setup-msbuild@v2.0.0
47+ # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
48+ - name : Setup MSBuild.exe
49+ uses : microsoft/setup-msbuild@v2.0.0
4850
49- # Restore the application to populate the obj folder with RuntimeIdentifiers
50- - name : Restore the application
51- run : msbuild $env:Edge /t:Restore /p:Configuration=$env:Configuration
52- env :
53- Configuration : ${{ matrix.configuration }}
51+ # Restore the application to populate the obj folder with RuntimeIdentifiers
52+ - name : Restore the application
53+ run : msbuild $env:Edge /t:Restore /p:Configuration=$env:Configuration
54+ env :
55+ Configuration : ${{ matrix.configuration }}
5456
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
58- env :
59- Configuration : ${{ matrix.configuration }}
60- Platform : ${{ matrix.platform }}
57+ # Create the app by building and publishing the project
58+ - name : Create the app
59+ run : msbuild $env:Edge /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform
60+ env :
61+ Configuration : ${{ matrix.configuration }}
62+ Platform : ${{ matrix.platform }}
6163
62- # Upload the app
63- - name : Upload app
64- uses : actions/upload-artifact@v4.6.1
65- with :
66- name : Edge-${{ steps.date.outputs.date }}
67- path : ${{ github.workspace }}\\bin\\win-${{ matrix.platform }}\\publish
64+ # Upload the app
65+ - name : Upload app
66+ uses : actions/upload-artifact@v4.6.1
67+ with :
68+ name : Edge-${{ steps.date.outputs.date }}
69+ path : ${{ github.workspace }}\\bin\\win-${{ matrix.platform }}\\publish
0 commit comments