Skip to content

Commit 664904c

Browse files
committed
Add license key to publish step too
1 parent d24437d commit 664904c

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

deployment/ci-cd-license-key.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,35 @@ The recommended way to provide your license key to the `Telerik.Licensing` NuGet
3333
3434
### Azure Pipelines (YAML)
3535
36-
1. Create a new <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch" target="_blank">user-defined variable</a> named `TELERIK_LICENSE`.
36+
1. Create a new [user-defined variable](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch) named `TELERIK_LICENSE`.
3737
1. Paste the contents of the license key file as a value.
3838
3939
### Azure Pipelines (Classic)
4040
41-
1. Create a new <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch" target="_blank">user-defined variable</a> named `TELERIK_LICENSE`.
41+
1. Create a new [user-defined variable](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch) named `TELERIK_LICENSE`.
4242
1. Paste the contents of the license key file as a value.
4343
4444
### GitHub Actions
4545
46-
1. Create a new <a href="https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository" target="_blank">Repository Secret</a> or an <a href="https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization" target="_blank">Organization Secret</a>.
46+
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).
4747
1. Set the name of the secret to `TELERIK_LICENSE` and paste the contents of the license file as a value.
48-
1. Add a `TELERIK_LICENSE` environment variable to the step, which builds the Blazor app:
48+
1. Add a `TELERIK_LICENSE` environment variable to the steps, which build and publish the Blazor app:
4949
````YAML.skip-repl
5050
env:
5151
TELERIK_LICENSE: ${{ curly_open }} secrets.TELERIK_LICENSE {{ curly_close }}
5252
````
53-
As a result, the whole step may look similar to:
53+
The resulting workflow steps may look similar to:
5454
````YAML.skip-repl
55-
- name: Build with dotnet
55+
- name: Build Step
5656
run: dotnet build -c Release
5757
env:
58-
TELERIK_LICENSE: ${{ curly_open }} secrets.TELERIK_LICENSE {{ curly_close }}
5958
TELERIK_NUGET_KEY: ${{ curly_open }} secrets.TELERIK_NUGET_KEY {{ curly_close }}
59+
TELERIK_LICENSE: ${{ curly_open }} secrets.TELERIK_LICENSE {{ curly_close }}
60+
61+
- name: Publish Step
62+
run: dotnet publish -c Release
63+
env:
64+
TELERIK_LICENSE: ${{ curly_open }} secrets.TELERIK_LICENSE {{ curly_close }}
6065
````
6166
(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.)
6267

0 commit comments

Comments
 (0)