Adding the License Key to CI/CD Services
This article describes how to set up and activate your Telerik UI for WinUI license key license across a few popular CI/CD services by using deployment keys.
Deployment keys are a dedicated type of license key for build pipelines. They’re tied to a specific application and the set of products that the application uses. Deployment keys cannot be used for application development.
Deployment keys cannot be used for application development.
When working with CI/CD platforms, always add the
Telerik.LicensingNuGet package as a project dependency. This package activates Telerik UI for WinUI at build time by using the provided license key.
To activate your license in a CI/CD environment:
-
Navigate to the Deployment Keys page.
-
Click Add Application. In the form that opens:
-
Add the application name.
-
Select the type of application—public or private.
-
Select the set of products used in the application.
-
-
Copy the key value and store it securely.
-
Create an environment variable named TELERIK_LICENSE and set it to the obtained key value.
Alternatively, the key can be stored in a telerik-license.txt file, for example when using the Azure Secure files approach.
Creating an Environment Variable
The recommended approach for providing your license key to the Telerik.Licensing NuGet package is to use environment variables. Each CI/CD platform has a different process for setting environment variables and this article lists only some of the most popular examples.
Azure Pipelines (YAML)
-
Create a new User-defined Variable named
TELERIK_LICENSE. -
Paste the contents of the license key file as a value.
Azure Pipelines (Classic)
-
Create a new user-defined variable named
TELERIK_LICENSE. -
Paste the contents of the license key file as a value.
GitHub Actions
-
Create a new Repository Secret or an Organization Secret.
-
Set the name of the secret to
TELERIK_LICENSEand paste the contents of the license file as a value. -
After running
npm installoryarn, add a build step to activate the license:[YML]
env:
TELERIK_LICENSE: $
See Also
- License Activation Errors and Warnings
- [Setting Up Your License Key](slug://installing-license-key}
- Frequently Asked Questions about Your UI for WinUI License Key