Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Telerik.Examples.Mvc Project

on:
push

jobs:
build:
runs-on: windows-latest
env:
TELERIK_LICENSE: ${{ secrets.TELERIK_LICENSE }}

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.1

- name: Restore NuGet Packages for Telerik.Examples.Mvc
run: nuget restore Telerik.Examples.Mvc/Telerik.Examples.Mvc.sln -ConfigFile NuGet.Config
env:
TELERIK_NUGET_KEY: ${{secrets.TELERIK_NUGET_KEY}}

- name: Build Telerik.Examples.Mvc Project
run: msbuild Telerik.Examples.Mvc/Telerik.Examples.Mvc.sln -t:rebuild -property:Configuration=Release
env:
TELERIK_LICENSE: ${{secrets.TELERIK_LICENSE_KEY}}
13 changes: 13 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Telerik" value="https://nuget.telerik.com/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<Telerik>
<add key="Username" value="api-key" />
<add key="ClearTextPassword" value="%TELERIK_NUGET_KEY%" />
</Telerik>
</packageSourceCredentials>
</configuration>