Skip to content

Commit 413a518

Browse files
committed
Setup UmbPack.
1 parent 49dbb61 commit 413a518

File tree

4 files changed

+38
-55
lines changed

4 files changed

+38
-55
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,5 @@ src/Umbraco.Forms.Integrations.TestSite/css
395395
src/Umbraco.Forms.Integrations.TestSite/Media
396396
src/Umbraco.Forms.Integrations.TestSite/scripts
397397
src/Umbraco.Forms.Integrations.TestSite/Umbraco
398-
src/Umbraco.Forms.Integrations.TestSite/Views
398+
src/Umbraco.Forms.Integrations.TestSite/Views
399+
*.zip

azure-pipeline - Crm.Hubspot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ steps:
4444
configuration: '$(buildConfiguration)'
4545

4646
- task: DotNetCoreCLI@2
47-
displayName: 'Create NuGet and Zip'
47+
displayName: 'Create NuGet Package'
4848
inputs:
4949
command: 'pack'
5050
arguments: '--configuration $(buildConfiguration)'
5151
packagesToPack: '$(project)'
5252
versioningScheme: 'off'
5353

54-
- task: CopyFiles@2
55-
displayName: 'Copy Zip Artifact To Staging'
54+
- task: CmdLine@2
55+
displayName: 'Create Umbraco Package'
5656
inputs:
57-
SourceFolder: '$(Build.SourcesDirectory)\src\$(projectName)\bin\$(buildConfiguration)\'
58-
Contents: '$(projectName).*.zip'
59-
TargetFolder: '$(Build.ArtifactStagingDirectory)'
57+
script: |
58+
dotnet tool install --global Umbraco.Tools.Packages
59+
umbpack pack src/$(projectName)/package.xml -o $(Build.ArtifactStagingDirectory)
6060
6161
- task: PublishBuildArtifacts@1
6262
displayName: 'Publish Build Artifacts'

src/Umbraco.Forms.Integrations.Crm.Hubspot/Umbraco.Forms.Integrations.Crm.Hubspot.csproj

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="MSBuild.Umbraco.Packaging" Version="1.0.2">
21-
<PrivateAssets>all</PrivateAssets>
22-
</PackageReference>
2320
<PackageReference Include="UmbracoCms.Web" Version="8.1.0" />
2421
<PackageReference Include="UmbracoForms.Core" Version="8.7.4" />
2522
</ItemGroup>
@@ -42,49 +39,4 @@
4239
<Exec Command="xcopy /E /Y /I &quot;$(ProjectDir)App_Plugins\UmbracoForms.Integrations\Crm\Hubspot&quot; &quot;$(SolutionDir)\Umbraco.Forms.Integrations.TestSite\App_Plugins\UmbracoForms.Integrations\Crm\Hubspot&quot;&#xD;&#xA;EXIT 0" />
4340
</Target>
4441

45-
<!--
46-
Create Umbraco package zip along with NuGet when dotnet pack is called.
47-
See and hat-tip:
48-
- https://24days.in/umbraco-cms/2019/umbraco-packages-2019/packaging/
49-
- https://github.com/callumbwhyte/msbuild-umbraco-packaging
50-
-->
51-
<UsingTask AssemblyFile="$(TargetDir)\MSBuild.Umbraco.Packaging.dll" TaskName="MSBuild.Umbraco.Packaging.GatherAssemblies" />
52-
53-
<Target Name="UmbracoGatherFiles">
54-
<GatherAssemblies Dependencies="@(ReferenceCopyLocalPaths)"
55-
PackageRefs="@(PackageReference);@(ProjectReference)">
56-
<Output TaskParameter="Assemblies" ItemName="PackageAssemblies" />
57-
</GatherAssemblies>
58-
59-
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(TempFolder)\bin\" />
60-
<Copy SourceFiles="@(PackageAssemblies)" DestinationFolder="$(TempFolder)\bin\" />
61-
62-
<Copy SourceFiles="@(Content)" DestinationFiles="$(TempFolder)%(RelativeDir)%(Filename)%(Extension)" />
63-
</Target>
64-
65-
<UsingTask AssemblyFile="$(TargetDir)\MSBuild.Umbraco.Packaging.dll" TaskName="MSBuild.Umbraco.Packaging.GenerateManifest" />
66-
67-
<Target Name="UmbracoPackage" AfterTargets="Pack" DependsOnTargets="UmbracoClean;UmbracoGatherFiles">
68-
<GenerateManifest TargetDirectory="$(TempFolder)"
69-
Name="$(Product)"
70-
Description="$(Description)"
71-
Version="$(Version)"
72-
UmbracoVersion="$(UmbracoVersion)"
73-
Author="$(Authors)"
74-
AuthorUrl="$(AuthorUrl)"
75-
ProjectUrl="$(PackageProjectUrl)"
76-
IconUrl="$(PackageIconUrl)"
77-
LicenseUrl="$(PackageLicenseUrl)" />
78-
</Target>
79-
80-
<Target Name="UmbracoPackage" AfterTargets="Pack" DependsOnTargets="UmbracoClean;UmbracoGatherFiles">
81-
<ZipDirectory SourceDirectory="$(TempFolder)"
82-
DestinationFile="$(DestFolder)\$(Product).$(Version).zip"
83-
Overwrite="true" />
84-
</Target>
85-
86-
<Target Name="UmbracoClean" AfterTargets="Clean">
87-
<RemoveDir Directories="$(TempFolder)" />
88-
</Target>
89-
9042
</Project>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<umbPackage>
3+
<info>
4+
<package>
5+
<name>Umbraco.Forms.Integrations.Crm.Hubspot</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.Forms.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.Forms.Integrations</website>
19+
</author>
20+
<contributors>
21+
<contributor>Warren Buckley</contributor>
22+
<contributor>Andy Butland</contributor>
23+
</contributors>
24+
<readme><![CDATA[An extension for Umbraco Forms to add support for submitting data to Hubspot]]></readme>
25+
</info>
26+
<files>
27+
<folder path="App_Plugins/UmbracoForms.Integrations/Crm/Hubspot" orgPath="App_Plugins/UmbracoForms.Integrations/Crm/Hubspot" />
28+
<file path="bin/release/net472/Umbraco.Forms.Integrations.Crm.Hubspot.dll" orgPath="bin/Umbraco.Forms.Integrations.Crm.Hubspot.dll" />
29+
</files>
30+
</umbPackage>

0 commit comments

Comments
 (0)