1+ name : Build Mvc, Razor Pages and ContentSecurityPolicy Solutions
2+
3+ on :
4+ push
5+
6+ jobs :
7+ build :
8+ runs-on : windows-latest
9+ env :
10+ TELERIK_LICENSE : ${{ secrets.TELERIK_LICENSE }}
11+
12+ steps :
13+ - name : Checkout repo
14+ uses : actions/checkout@v4
15+
16+ - name : Setup .NET
17+ uses : actions/setup-dotnet@v4
18+ with :
19+ dotnet-version : 9.x.x
20+
21+ # Telerik.Examples.Mvc Project Restore & Build
22+ - name : Restore NuGet Packages for Telerik.Examples.Mvc
23+ run : |
24+ dotnet restore Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj --configfile NuGet.Config -r win-x64
25+ env :
26+ TELERIK_NUGET_KEY : ${{secrets.TELERIK_NUGET_KEY}}
27+
28+ - name : Build Telerik.Examples.Mvc Project
29+ run : dotnet build Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj -r win-x64 --no-restore
30+ env :
31+ TELERIK_LICENSE : ${{secrets.TELERIK_LICENSE_KEY}}
32+
33+ # Telerik.Examples.RazorPages Project Restore & Build
34+ - name : Restore NuGet Packages for Telerik.Examples.RazorPages
35+ run : |
36+ dotnet restore Telerik.Examples.RazorPages/Telerik.Examples.RazorPages/Telerik.Examples.RazorPages.csproj --configfile NuGet.Config -r win-x64
37+ env :
38+ TELERIK_NUGET_KEY : ${{secrets.TELERIK_NUGET_KEY}}
39+
40+ - name : Build Telerik.Examples.RazorPages Project
41+ run : dotnet build Telerik.Examples.RazorPages/Telerik.Examples.RazorPages/Telerik.Examples.RazorPages.csproj -r win-x64 --no-restore
42+ env :
43+ TELERIK_LICENSE : ${{secrets.TELERIK_LICENSE_KEY}}
44+
45+ # Telerik.Examples.ContentSecurityPolicy Project Restore & Build
46+ - name : Restore NuGet Packages for Telerik.Examples.ContentSecurityPolicy Project
47+ run : |
48+ dotnet restore Telerik.Examples.ContentSecurityPolicy/Telerik.Examples.ContentSecurityPolicy.csproj --configfile NuGet.Config -r win-x64
49+ env :
50+ TELERIK_NUGET_KEY : ${{secrets.TELERIK_NUGET_KEY}}
51+
52+ - name : Build Telerik.Examples.ContentSecurityPolicy Project
53+ run : dotnet build Telerik.Examples.ContentSecurityPolicy/Telerik.Examples.ContentSecurityPolicy.csproj -r win-x64 --no-restore
54+ env :
55+ TELERIK_LICENSE : ${{secrets.TELERIK_LICENSE_KEY}}
0 commit comments