File tree Expand file tree Collapse file tree 3 files changed +38
-42
lines changed
src/Umbraco.Cms.Integrations.Commerce.CommerceTools Expand file tree Collapse file tree 3 files changed +38
-42
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,21 @@ steps:
31
31
configuration : ' $(buildConfiguration)'
32
32
33
33
- task : DotNetCoreCLI@2
34
- displayName : ' Create NuGet and Zip '
34
+ displayName : ' Create NuGet Package '
35
35
inputs :
36
36
command : ' pack'
37
37
arguments : ' --configuration $(buildConfiguration)'
38
38
packagesToPack : ' $(project)'
39
39
versioningScheme : ' off'
40
40
41
- - task : CopyFiles @2
42
- displayName : ' Copy Zip Artifact To Staging '
41
+ - task : CmdLine @2
42
+ displayName : ' Create Umbraco Package '
43
43
inputs :
44
- SourceFolder : ' $(Build.SourcesDirectory)\src\$(projectName)\bin\$(buildConfiguration)\'
45
- Contents : ' $(projectName).*.zip'
46
- TargetFolder : ' $(Build.ArtifactStagingDirectory)'
44
+ script : |
45
+ dotnet tool install --global Umbraco.Tools.Packages
46
+ cd src/$(projectName)/
47
+ umbpack pack .\package.xml -o $(Build.ArtifactStagingDirectory)
48
+ cd ../../
47
49
48
50
- task : PublishBuildArtifacts@1
49
51
displayName : ' Publish Build Artifacts'
Original file line number Diff line number Diff line change 16
16
</PropertyGroup >
17
17
18
18
<ItemGroup >
19
- <PackageReference Include =" MSBuild.Umbraco.Packaging" Version =" 1.0.2" >
20
- <PrivateAssets >all</PrivateAssets >
21
- </PackageReference >
22
19
<PackageReference Include =" UmbracoCms.Web" version =" 8.5.4" />
23
20
</ItemGroup >
24
21
29
26
</Content >
30
27
</ItemGroup >
31
28
32
- <!--
33
- Create Umbraco package zip along with NuGet when dotnet pack is called.
34
- See and hat-tip:
35
- - https://24days.in/umbraco-cms/2019/umbraco-packages-2019/packaging/
36
- - https://github.com/callumbwhyte/msbuild-umbraco-packaging
37
- -->
38
- <UsingTask AssemblyFile =" $(TargetDir)\MSBuild.Umbraco.Packaging.dll" TaskName =" MSBuild.Umbraco.Packaging.GatherAssemblies" />
39
-
40
- <Target Name =" UmbracoGatherFiles" >
41
- <GatherAssemblies Dependencies =" @(ReferenceCopyLocalPaths)" PackageRefs =" @(PackageReference);@(ProjectReference)" >
42
- <Output TaskParameter =" Assemblies" ItemName =" PackageAssemblies" />
43
- </GatherAssemblies >
44
-
45
- <Copy SourceFiles =" $(TargetPath)" DestinationFolder =" $(TempFolder)\bin\" />
46
- <Copy SourceFiles =" @(PackageAssemblies)" DestinationFolder =" $(TempFolder)\bin\" />
47
-
48
- <Copy SourceFiles =" @(Content)" DestinationFiles =" $(TempFolder)%(RelativeDir)%(Filename)%(Extension)" />
49
- </Target >
50
-
51
- <UsingTask AssemblyFile =" $(TargetDir)\MSBuild.Umbraco.Packaging.dll" TaskName =" MSBuild.Umbraco.Packaging.GenerateManifest" />
52
-
53
- <Target Name =" UmbracoPackage" AfterTargets =" Pack" DependsOnTargets =" UmbracoClean;UmbracoGatherFiles" >
54
- <GenerateManifest TargetDirectory =" $(TempFolder)" Name =" $(Product)" Description =" $(Description)" Version =" $(Version)" UmbracoVersion =" $(UmbracoVersion)" Author =" $(Authors)" AuthorUrl =" $(AuthorUrl)" ProjectUrl =" $(PackageProjectUrl)" IconUrl =" $(PackageIconUrl)" LicenseUrl =" $(PackageLicenseUrl)" />
55
- </Target >
56
-
57
- <Target Name =" UmbracoPackage" AfterTargets =" Pack" DependsOnTargets =" UmbracoClean;UmbracoGatherFiles" >
58
- <ZipDirectory SourceDirectory =" $(TempFolder)" DestinationFile =" $(DestFolder)\$(Product).$(Version).zip" Overwrite =" true" />
59
- </Target >
60
-
61
- <Target Name =" UmbracoClean" AfterTargets =" Clean" >
62
- <RemoveDir Directories =" $(TempFolder)" />
63
- </Target >
64
-
65
29
</Project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <umbPackage >
3
+ <info >
4
+ <package >
5
+ <name >Umbraco.Cms.Integrations.Commerce.CommerceTools</name >
6
+ <version >1.0.0</version >
7
+ <iconUrl ></iconUrl >
8
+ <licence url =" https://opensource.org/licenses/MIT" >MIT</licence >
9
+ <url >https://github.com/umbraco/Umbraco.Cms.Integrations</url >
10
+ <requirements type =" strict" >
11
+ <major >8</major >
12
+ <minor >1</minor >
13
+ <patch >0</patch >
14
+ </requirements >
15
+ </package >
16
+ <author >
17
+ <name >Umbraco HQ</name >
18
+ <website >https://github.com/umbraco/Umbraco.Cms.Integrations</website >
19
+ </author >
20
+ <contributors >
21
+ <contributor >Søren Kottal</contributor >
22
+ <contributor >Andy Butland</contributor >
23
+ </contributors >
24
+ <readme ><![CDATA[ An extension for Umbraco CMS providing product and category pickers for CommerceTools.]]> </readme >
25
+ </info >
26
+ <files >
27
+ <folder path =" App_Plugins/UmbracoCms.Integrations/Commerce/CommerceTools" orgPath =" App_Plugins/UmbracoCms.Integrations/Commerce/CommerceTools" />
28
+ <file path =" bin/release/net472/Umbraco.Cms.Integrations.Commerce.CommerceTools.dll" orgPath =" bin/Umbraco.Cms.Integrations.Commerce.CommerceTools.dll" />
29
+ </files >
30
+ </umbPackage >
You can’t perform that action at this time.
0 commit comments