Skip to content

Early August 2026 Updates #67

Early August 2026 Updates

Early August 2026 Updates #67

# This example shows you how you can use the named environment variables in the nuget.config file to set the credentials, for more information see https://github.com/LanceMcCarthy/DevOpsExamples#github-actions-using-secrets-to-set-environment-variables
name: ASP.NET AJAX
on:
workflow_dispatch:
push:
branches:
- main
- "ajax/*"
paths:
- 'src/Ajax/**/*'
- '.github/workflows/main_build-ajax.yml'
env:
CSPROJ_PATH: "src/Ajax/MySite.sln"
NUGETCONFIG_PATH: "src/NuGet.Config"
jobs:
build_web_app:
name: "🌐 Build web app"
runs-on: windows-latest
steps:
- name: "⬇️ Checkout"
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: "⚙️ Setup Nuget.exe"
uses: nuget/setup-nuget@v4
with:
nuget-version: '5.x'
- name: "🛠️ Setup MSBuild.exe"
uses: microsoft/setup-msbuild@v3
# Important: We are using nuget CLI (not dotnet CLI) See https://docs.microsoft.com/en-us/nuget/reference/nuget-exe-cli-reference
- name: "📥 NuGet.exe Restore"
run: nuget restore ${{env.CSPROJ_PATH}} -ConfigFile ${{env.NUGETCONFIG_PATH}}
env:
TELERIK_USERNAME: "api-key" # Variable name used in the nuget.config file
TELERIK_PASSWORD: ${{secrets.TELERIK_NUGET_KEY}} # Variable name used in the nuget.config file
- name: "🔨 Build the AJAX application"
run: msbuild ${{env.CSPROJ_PATH}} /t:Restore /p:Configuration=Release /p:RuntimeIdentifier=any
env:
TELERIK_LICENSE: ${{secrets.TELERIK_LICENSE_KEY}}