From 266161f72efd626f2fda0212e2b722f370cf7373 Mon Sep 17 00:00:00 2001 From: alestoya Date: Thu, 27 Nov 2025 12:24:06 +0200 Subject: [PATCH] chore: add ci build --- .github/workflows/build-debug.yml | 55 +++++++++++++++++++ NuGet.Config | 13 +++++ .../NuGet.Config | 7 --- Telerik.Examples.RazorPages/NuGet.config | 9 --- 4 files changed, 68 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/build-debug.yml create mode 100644 NuGet.Config delete mode 100644 Telerik.Examples.ContentSecurityPolicy/NuGet.Config delete mode 100644 Telerik.Examples.RazorPages/NuGet.config diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml new file mode 100644 index 0000000..d8e5aab --- /dev/null +++ b/.github/workflows/build-debug.yml @@ -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}} \ No newline at end of file diff --git a/NuGet.Config b/NuGet.Config new file mode 100644 index 0000000..9ac898b --- /dev/null +++ b/NuGet.Config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/Telerik.Examples.ContentSecurityPolicy/NuGet.Config b/Telerik.Examples.ContentSecurityPolicy/NuGet.Config deleted file mode 100644 index 43c33f5..0000000 --- a/Telerik.Examples.ContentSecurityPolicy/NuGet.Config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/Telerik.Examples.RazorPages/NuGet.config b/Telerik.Examples.RazorPages/NuGet.config deleted file mode 100644 index d937988..0000000 --- a/Telerik.Examples.RazorPages/NuGet.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - -