82e0ef17e9
ASP.NET AJAX / build_web_app (push) Waiting to run
Angular / build_angular (push) Waiting to run
ASP.NET Core (with Reporting) / build_windows (push) Waiting to run
Blazor (with Reporting) / build_windows (push) Waiting to run
Blazor (with Reporting) / build_linux (push) Waiting to run
Console (.NET) / build_console (arm64, linux) (push) Waiting to run
Console (.NET) / build_console (arm64, win) (push) Waiting to run
Console (.NET) / build_console (x64, linux) (push) Waiting to run
Console (.NET) / build_console (x64, win) (push) Waiting to run
MAUI / Windows Smoketest (push) Waiting to run
MAUI / Android Smoketest (push) Waiting to run
MAUI / iOS Smoketest (push) Waiting to run
MAUI / MacCatalyst Smoketest (push) Waiting to run
WinForms (.NET Framework) / build_desktop (Release, x64) (push) Waiting to run
WinForms (.NET Framework) / build_desktop (Release, x86) (push) Waiting to run
WinUI3 / build-windows (push) Waiting to run
WPF (.NET Framework) / build_desktop (Release, x64) (push) Waiting to run
WPF (.NET Framework) / build_desktop (Release, x86) (push) Waiting to run
ASP.NET Core (with Reporting) - Docker / Microsoft Base - Publish to Docker Hub (push) Waiting to run
ASP.NET Core (with Reporting) - Docker / CentOS Base - Publish to Docker Hub (push) Waiting to run
Blazor (with Reporting) - Docker / Dockerfile Build and Publish (push) Waiting to run
109 lines
3.4 KiB
YAML
109 lines
3.4 KiB
YAML
# This workflow has three examples (one for IIS, two using containers)
|
|
# [Option A] Typical IIS build & publish
|
|
# [Option B] DOCKER FILE BUILD - publishes the image to ghcr.io (GitHub container registry)
|
|
# [Option C] .NET SDK CONTAINER BUILD - publishes the image to Docker Hub
|
|
name: Blazor (with Reporting)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "blazor/*"
|
|
paths:
|
|
- 'src/Blazor/**/*'
|
|
- '.github/workflows/main_build-blazor.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write # to publish to GitHub container registry
|
|
id-token: write # # JWT for Akeyless auth
|
|
|
|
env:
|
|
CONFIGURATION: Release
|
|
BLAZOR_PROJ_PATH: src/Blazor/MyBlazorApp/MyBlazorApp.csproj
|
|
TEST_PROJ_PATH: src/Blazor/MyBlazorApp.Tests/MyBlazorApp.Tests.csproj
|
|
NUGET_CONFIG_PATH: src/NuGet.Config
|
|
DOTNET_VERSION: "10.0.x"
|
|
|
|
jobs:
|
|
build_windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# Using AKeyless for secrets in this demo
|
|
- 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@v4
|
|
with:
|
|
dotnet-version: ${{env.DOTNET_VERSION}}
|
|
|
|
- name: Restore NuGet Packages
|
|
run: |
|
|
dotnet restore ${{env.BLAZOR_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}}
|
|
dotnet restore ${{env.TEST_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}}
|
|
env:
|
|
TELERIK_USERNAME: "api-key"
|
|
TELERIK_PASSWORD: ${{steps.akeyless.outputs.TELERIK_NUGET_KEY}}
|
|
|
|
- name: Build Test Project
|
|
run: dotnet build ${{env.TEST_PROJ_PATH}} -c ${{env.CONFIGURATION}} --no-restore
|
|
env:
|
|
TELERIK_LICENSE: ${{steps.akeyless.outputs.TELERIK_LICENSE_KEY}}
|
|
|
|
build_linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# Using AKeyless for secrets in this demo
|
|
- 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@v4
|
|
with:
|
|
dotnet-version: ${{env.DOTNET_VERSION}}
|
|
|
|
- name: Restore NuGet Packages
|
|
run: |
|
|
dotnet restore ${{env.BLAZOR_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}}
|
|
dotnet restore ${{env.TEST_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}}
|
|
env:
|
|
TELERIK_USERNAME: "api-key"
|
|
TELERIK_PASSWORD: ${{steps.akeyless.outputs.TELERIK_NUGET_KEY}}
|
|
|
|
- name: Build Test Project
|
|
run: dotnet build ${{env.TEST_PROJ_PATH}} -c ${{env.CONFIGURATION}} --no-restore
|
|
env:
|
|
TELERIK_LICENSE: ${{steps.akeyless.outputs.TELERIK_LICENSE_KEY}}
|