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
55 changes: 55 additions & 0 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Mvc, Razor Pages and ContentSecurityPolicy Solutions

on:
push

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

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

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

# Telerik.Examples.Mvc Project Restore & Build
- name: Restore NuGet Packages for Telerik.Examples.Mvc
run: |
dotnet restore Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj --configfile NuGet.Config -r win-x64
env:
TELERIK_NUGET_KEY: ${{secrets.TELERIK_NUGET_KEY}}

- name: Build Telerik.Examples.Mvc Project
run: dotnet build Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj -r win-x64 --no-restore
env:
TELERIK_LICENSE: ${{secrets.TELERIK_LICENSE_KEY}}

# Telerik.Examples.RazorPages Project Restore & Build
- name: Restore NuGet Packages for Telerik.Examples.RazorPages
run: |
dotnet restore Telerik.Examples.RazorPages/Telerik.Examples.RazorPages/Telerik.Examples.RazorPages.csproj --configfile NuGet.Config -r win-x64
env:
TELERIK_NUGET_KEY: ${{secrets.TELERIK_NUGET_KEY}}

- name: Build Telerik.Examples.RazorPages Project
run: dotnet build Telerik.Examples.RazorPages/Telerik.Examples.RazorPages/Telerik.Examples.RazorPages.csproj -r win-x64 --no-restore
env:
TELERIK_LICENSE: ${{secrets.TELERIK_LICENSE_KEY}}

# Telerik.Examples.ContentSecurityPolicy Project Restore & Build
- name: Restore NuGet Packages for Telerik.Examples.ContentSecurityPolicy Project
run: |
dotnet restore Telerik.Examples.ContentSecurityPolicy/Telerik.Examples.ContentSecurityPolicy.csproj --configfile NuGet.Config -r win-x64
env:
TELERIK_NUGET_KEY: ${{secrets.TELERIK_NUGET_KEY}}

- name: Build Telerik.Examples.ContentSecurityPolicy Project
run: dotnet build Telerik.Examples.ContentSecurityPolicy/Telerik.Examples.ContentSecurityPolicy.csproj -r win-x64 --no-restore
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>
7 changes: 0 additions & 7 deletions Telerik.Examples.ContentSecurityPolicy/NuGet.Config

This file was deleted.

9 changes: 0 additions & 9 deletions Telerik.Examples.RazorPages/NuGet.config

This file was deleted.

Loading