Skip to content

Q4 2025 updates (#156) #56

Q4 2025 updates (#156)

Q4 2025 updates (#156) #56

# 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:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v2
with:
nuget-version: '5.x'
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
# 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}}