Skip to content

Instantly share code, notes, and snippets.

@NBprojekt
Last active August 26, 2020 09:01
Show Gist options
  • Save NBprojekt/69cf85289df384757417f76a58acc765 to your computer and use it in GitHub Desktop.
Save NBprojekt/69cf85289df384757417f76a58acc765 to your computer and use it in GitHub Desktop.
Action for .NET Application using Telerik

How to build dotnet apps like Blazor that use Telerik, inside of Github actions.

name: Telerik UI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Create release build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nuget/setup-nuget@v1
with:
nuget-version: 'latest'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Add Telerik NuGet feed
run: nuget Sources Add -Name "telerik.com" -Source "https://nuget.telerik.com/nuget" -UserName "${{ secrets.TELERIK_USER }}" -Password "${{ secrets.TELERIK_PASSWORD }}" -StorePasswordInClearText
- name: Restore distinct layers
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet restore
- name: Build with dotnet
run: dotnet build --configuration Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment