Skip to content

Commit 266161f

Browse files
committed
chore: add ci build
1 parent ad7b885 commit 266161f

File tree

4 files changed

+68
-16
lines changed

4 files changed

+68
-16
lines changed

.github/workflows/build-debug.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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}}

NuGet.Config

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
<add key="Telerik" value="https://nuget.telerik.com/v3/index.json" />
6+
</packageSources>
7+
<packageSourceCredentials>
8+
<Telerik>
9+
<add key="Username" value="api-key" />
10+
<add key="ClearTextPassword" value="%TELERIK_NUGET_KEY%" />
11+
</Telerik>
12+
</packageSourceCredentials>
13+
</configuration>

Telerik.Examples.ContentSecurityPolicy/NuGet.Config

Lines changed: 0 additions & 7 deletions
This file was deleted.

Telerik.Examples.RazorPages/NuGet.config

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)