Skip to content

Commit 1540a3b

Browse files
committed
Update appveyor build scripts
1 parent 7ec385a commit 1540a3b

File tree

6 files changed

+23
-38
lines changed

6 files changed

+23
-38
lines changed

.appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@ artifacts:
9090

9191
deploy:
9292
-provider: GitHub
93-
release: $(appveyor_build_version)
93+
# release: $(appveyor_build_version)
9494
description: 'Release description'
9595
provider: GitHub
9696
auth_token:
9797
secure: <your encrypted token> # your encrypted token from GitHub
9898
artifact: .\Artifacts\**\*.nupkg # upload all NuGet packages to release assets
9999
draft: false
100-
prerelease: false
100+
prerelease: true
101101
on:
102102
branch: master # release from master branch only
103-
appveyor_repo_tag: true # deploy on tag push only
103+
appveyor_repo_tag: false # deploy on tag push only
104104
- provider: NuGet
105105
name: development
106106
server: https://www.myget.org/F/courio-dev/api/v2/package

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,8 @@ In example project if you try to UseMvc work for ```Tenant 2``` you will get thi
182182

183183
- [Saaskit](https://github.com/saaskit/saaskit)
184184
- [Explanation of multitenancy with autofac in ASP.NET Core](https://stackoverflow.com/questions/38940241/autofac-multitenant-in-an-aspnet-core-application-does-not-seem-to-resolve-tenan/38960122#38960122)
185+
186+
## Version History
187+
188+
**1.0.0**
189+
* Initial release

ReleaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
### New in 1.0.0
3+
* First release of Cake.

build.cake

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -249,40 +249,10 @@ Task("BuildAndTest")
249249
Task("Version").Does(() =>{});
250250
Task("Remove-Packages").Does(() =>CleanDirectory(paths.Directories.ArtifactNugetsDirectory));
251251

252-
Task("Copy-Files")
253-
.DoesForEach(paths.Files.AllNuspecsProjects,projectNuSpecToPack =>
254-
{
255-
/*
256-
var nuspecFile = projectNuSpecToPack.FullPath;
257-
var csprojFile = projectNuSpecToPack.ChangeExtension(".csproj");
258-
259-
var outputDirectory21 = GetOutputArtifactFromProjectFile(paths.Directories.ArtifactsBinNetCoreapp21,csprojFile);
260-
261-
// .NET Core
262-
DotNetCorePublish(csprojFile.FullPath, new DotNetCorePublishSettings
263-
{
264-
//Framework = "netcoreapp2.1",
265-
//Framework = "netstandard2.0",
266-
NoRestore = true,
267-
Configuration = configuration,
268-
OutputDirectory = outputDirectory21,
269-
MSBuildSettings = msBuildSettings
270-
});
271-
272-
// Copy license
273-
//CopyFileToDirectory("./LICENSE", outputDirectory21);
274-
*/
275-
276-
});
277-
278-
// Run dotnet pack to produce NuGet packages from our projects. Versions the package
279-
// using the build number argument on the script which is used as the revision number
280-
// (Last number in 1.0.0.0). The packages are dropped in the Artifacts directory.
281252
Task("Package-NuGet")
282253
.IsDependentOn("BuildAndTest")
283254
.IsDependentOn("Remove-Packages")
284255
.IsDependentOn("Version")
285-
.IsDependentOn("Copy-Files")
286256
.DoesForEach(paths.Files.AllNuspecsProjects,projectNuSpecToPack =>
287257
{
288258
// .NET Core
@@ -296,7 +266,11 @@ Task("Package-NuGet")
296266
OutputDirectory = paths.Directories.ArtifactNugetsDirectory,
297267
VersionSuffix = buildVersion.VersionSuffix,
298268
NoRestore=true,
299-
NoBuild=true
269+
NoBuild=true,
270+
ArgumentCustomization = args => args
271+
.Append("--no-restore")
272+
.Append("--no-build")
273+
.AppendSwitch("/p:PackageVersion","=",buildVersion.Version)
300274
});
301275

302276
});

directory.build/Directory.Build.props

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
<Import Project="Directory.Dependencies.Commons.props" />
1313
<Import Project="Directory.CodeAnalysis.props" />
1414

15-
<ItemGroup>
15+
<!--<ItemGroup>
1616
<Content Include="README.md"><Pack>true</Pack><PackagePath>..\</PackagePath></Content>
1717
<Content Include="LICENSE"><Pack>true</Pack><PackagePath>LICENSE</PackagePath></Content>
18-
</ItemGroup>
18+
</ItemGroup>-->
1919

2020
<PropertyGroup Label="Common Package">
21-
<Copyright>Copyright (c) Courio-Dev and contributors. All rights reserved.</Copyright>
22-
<Description>Description</Description>
2321
<Authors>Courio-Dev</Authors>
2422
<Company>Courio-Dev</Company>
23+
<Copyright>Copyright (c) Courio-Dev and contributors. All rights reserved.</Copyright>
24+
<Description>Description</Description>
25+
<ReleaseNotes></ReleaseNotes>
2526
<PackageProjectUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy</PackageProjectUrl>
2627
<PackageLicenseUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy/blob/master/LICENSE</PackageLicenseUrl>
2728
<PackageIconUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy</PackageIconUrl>
@@ -87,6 +88,7 @@
8788
author=$(Authors);
8889
copyright=$(Copyright);
8990
description=$(Description);
91+
releaseNotes=$(ReleaseNotes)
9092

9193
OutputBaseBinary=$(MSBuildProjectDirectory)\$(OutputPath);
9294
</NuspecProperties>

src/PuzzleCMS.Core/PuzzleCMS.Core.Multitenancy/PuzzleCMS.Core.Multitenancy.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1212
<developmentDependency>true</developmentDependency>
1313
<description>$description$</description>
14+
<releaseNotes>$releaseNotes$</releaseNotes>
1415
<tags>$tags$</tags>
1516
<serviceable>true</serviceable>
1617
<repository type="$repositoryType$" url="$repositoryUrl$" />

0 commit comments

Comments
 (0)