You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deployment/ci-cd-license-key.md
+54-20Lines changed: 54 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,34 +43,68 @@ steps:
43
43
# ...
44
44
env:
45
45
TELERIK_LICENSE: $(Secret_Telerik_License_Key)
46
+
47
+
- task: DotNetCoreCLI@2
48
+
inputs:
49
+
command: 'publish'
50
+
# ...
51
+
env:
52
+
TELERIK_LICENSE: $(Secret_Telerik_License_Key)
46
53
````
47
54
48
-
> Another option is to use a Telerik license file as a [secure file in the pipeline](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/secure-files). Implement a [script that copies the license file](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops#consume-a-secure-file-in-a-pipeline) to the application's root folder, so that it's available to all projects that need it.
55
+
Another option is to use a Telerik license file as a [secure file](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/secure-files) in the pipeline. [Download the secure file](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/download-secure-file-v1?view=azure-pipelines) and use it with a `TELERIK_LICENSE_PATH` environment variable instead of `TELERIK_LICENSE` in all tasks, steps, or scripts that build and publish the Blazor app.
56
+
57
+
`TELERIK_LICENSE_PATH` requires `Telerik.Licensing` version `1.4.9` and above. You can use it with Telerik UI for Blazor `8.1.0` and above.
58
+
59
+
>caption Using a TELERIK_LICENSE_PATH environment variable in Azure Pipeline YAML
1. Create a new [Repository Secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) or an [Organization Secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization).
53
89
1. Paste the contents of the license key file as a value of the GitHub secret.
54
90
1. Assign the secret to an environment variable named `TELERIK_LICENSE`.
55
-
1. Use the `TELERIK_LICENSE` environment variable in the steps, which build and publish the Blazor app:
Also see [Using NuGet Keys](slug:deployment-nuget#using-nuget-keys) in the article [Restoring NuGet Packages in Your CI Workflow](slug:deployment-nuget). It shows how to use the `TELERIK_NUGET_KEY` environment variable in your CI build environment.
91
+
1. Use the `TELERIK_LICENSE` environment variable in the steps, which build and publish the Blazor app.
92
+
93
+
>caption Using a TELERIK_LICENSE environment variable in GitHub Actions
Also see [Using NuGet Keys](slug:deployment-nuget#using-nuget-keys) in the article [Restoring NuGet Packages in Your CI Workflow](slug:deployment-nuget). It shows how to use the `TELERIK_NUGET_KEY` environment variable in your CI build environment.
0 commit comments