How to build dotnet apps like Blazor that use Telerik, inside of Github actions.
Last active
August 26, 2020 09:01
-
-
Save NBprojekt/69cf85289df384757417f76a58acc765 to your computer and use it in GitHub Desktop.
Action for .NET Application using Telerik
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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