Skip to content

DPL Namespace change #174

DPL Namespace change

DPL Namespace change #174

name: ASP.NET Core (with Reporting)
on:
workflow_dispatch:
push:
branches:
- main
- "aspnetcore/*"
paths:
- 'src/AspNetCore/**/*'
- '.github/workflows/main_build-aspnetcore.yml'
permissions:
id-token: write # JWT for Akeyless and Azure auth
env:
DOTNET_VERSION: "10.0.x"
PROJECT_PATH: src/AspNetCore/MyAspNetCoreApp/MyAspNetCoreApp.csproj
NUGETCONFIG_PATH: src/NuGet.Config
jobs:
build_windows:
name: "🌐 Build ASP.NET Core"
runs-on: windows-latest
steps:
- name: "⬇️ Checkout"
uses: actions/checkout@v7
# Using AKeyless for secrets in this demo, but you can use github Secrets instead
- name: "🔐 Fetch secrets from AKeyless"
id: akeyless
uses: LanceMcCarthy/akeyless-action@v5
with:
access-id: 'p-4blpeo5zdfeaom'
static-secrets: |
{
"/progress/TELERIK_NUGET_KEY":"TELERIK_NUGET_KEY",
"/progress/TELERIK_LICENSE":"TELERIK_LICENSE_KEY"
}
export-secrets-to-outputs: true
export-secrets-to-environment: false
- name: "🧰 Setup .NET Core SDK"
uses: actions/setup-dotnet@v6
with:
dotnet-version: ${{env.DOTNET_VERSION}}
- name: "📥 Restore NuGet Packages"
run: dotnet restore ${{env.PROJECT_PATH}} --configfile ${{env.NUGETCONFIG_PATH}}
env:
TELERIK_USERNAME: "api-key"
TELERIK_PASSWORD: ${{steps.akeyless.outputs.TELERIK_NUGET_KEY}}
- name: "🔨 Build ASP.NET Core Project"
run: dotnet build ${{env.PROJECT_PATH}} -c Debug --no-restore
env:
TELERIK_LICENSE: ${{steps.akeyless.outputs.TELERIK_LICENSE_KEY}}