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: installation/nuget.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ This article also offers some troubleshooting information in case you encounter
25
25
* [I do not see the Telerik Packages](#i-do-not-see-the-telerik-packages)
26
26
* [CI and CD Automated Builds](#ci-and-cd-automated-builds)
27
27
* Azure
28
+
* GitHub Secrets
28
29
29
30
## Video Tutorial - Visual Studio
30
31
@@ -164,6 +165,39 @@ A few things to double check to ensure correct setup:
164
165
* The credentials being used have a UI for Blazor license.
165
166
* Make sure that you use `dotnet restore` and not `nuget restore` in your pipeline step.
166
167
168
+
169
+
#### GitHub Secrets
170
+
171
+
In some cases, [GitHub Secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) are used to store credentials that you would later have to consume from the `nuget.config` file in order to connect to the Telerik feed.
172
+
173
+
A way to pass them along is to mark them as environment variables. You can find an example in the [MediaFileManager repo by Lance McCarthy](https://github.com/LanceMcCarthy/MediaFileManager). Here follow the two relevant extracts.
174
+
175
+
>caption Example of getting GitHub Secrets for Telerik Login into Environment Variables
176
+
177
+
````YAML
178
+
jobs:
179
+
build:
180
+
runs-on: windows-latest
181
+
182
+
env:
183
+
TELERIK_USERNAME: ${ { secrets.TELERIK_USERNAME } } # remove the space between the brackets
184
+
TELERIK_PASSWORD: ${ { secrets.TELERIK_PASSWORD } } # remove the space between the brackets
185
+
````
186
+
187
+
Then, read them as such in the `nuget.config` file, for example:
188
+
189
+
>caption Example of reading the environment variables with the Telerik credentials in the nuget.config file
0 commit comments