File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
variables :
2
2
solution : Umbraco.StorageProviders.sln
3
3
buildConfiguration : Release
4
- NUGET_PACKAGES : ' '
4
+ NUGET_PACKAGES : $(Pipeline.Workspace)/.nuget/packages
5
5
DOTNET_NOLOGO : true
6
6
DOTNET_GENERATE_ASPNET_CERTIFICATE : false
7
7
DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
@@ -14,15 +14,16 @@ stages:
14
14
vmImage : windows-latest
15
15
steps :
16
16
- task : Cache@2
17
- displayName : Cache NuGet packages
18
17
inputs :
19
18
key : ' nuget | "$(Agent.OS)" | **/packages.lock.json'
20
- path : ' $(NUGET_PACKAGES)'
21
- cacheHitVar : ' CACHE_RESTORED'
19
+ restoreKeys : |
20
+ nuget | "$(Agent.OS)"
21
+ nuget
22
+ path : $(NUGET_PACKAGES)
23
+ displayName : Cache NuGet packages
22
24
23
25
- script : dotnet restore $(solution) --locked-mode
24
26
displayName : Restore NuGet packages
25
- condition : ne(variables.CACHE_RESTORED, true)
26
27
27
28
- script : dotnet build $(solution) -c $(buildConfiguration) -p:ContinuousIntegrationBuild=true --no-restore
28
29
displayName : Build
@@ -31,6 +32,6 @@ stages:
31
32
displayName : Pack
32
33
33
34
- task : PublishBuildArtifacts@1
34
- displayName : Publish NuGet packages
35
35
inputs :
36
36
ArtifactName : nupkg
37
+ displayName : Publish NuGet packages
You can’t perform that action at this time.
0 commit comments