1 Commits

Author SHA1 Message Date
ITDancer13
11c3781f9e Release new versions of Sieve via CI 2021-08-29 16:46:46 +02:00
3 changed files with 3 additions and 6 deletions

View File

@@ -19,9 +19,8 @@ name: ci_publish
on: on:
push: push:
branches: branches:
- master
- 'releases/*' - 'releases/*'
tags:
- 'v*'
jobs: jobs:
ubuntu-latest: ubuntu-latest:

View File

@@ -75,7 +75,7 @@ Where `SieveCustomSortMethodsOfPosts` for example is:
```C# ```C#
public class SieveCustomSortMethods : ISieveCustomSortMethods public class SieveCustomSortMethods : ISieveCustomSortMethods
{ {
public IQueryable<Post> Popularity(IQueryable<Post> source, bool useThenBy, bool desc) // The method is given an indicator of whether to use ThenBy(), and if the query is descending public IQueryable<Post> Popularity(IQueryable<Post> source, bool useThenBy, bool desc) // The method is given an indicator of weather to use ThenBy(), and if the query is descending
{ {
var result = useThenBy ? var result = useThenBy ?
((IOrderedQueryable<Post>)source).ThenBy(p => p.LikeCount) : // ThenBy only works on IOrderedQueryable<TEntity> ((IOrderedQueryable<Post>)source).ThenBy(p => p.LikeCount) : // ThenBy only works on IOrderedQueryable<TEntity>

View File

@@ -21,8 +21,7 @@ using static Nuke.Common.Tools.DotNet.DotNetTasks;
InvokedTargets = new[] {nameof(Ci)}, InvokedTargets = new[] {nameof(Ci)},
CacheKeyFiles = new string[0])] CacheKeyFiles = new string[0])]
[GitHubActions("ci_publish", GitHubActionsImage.UbuntuLatest, [GitHubActions("ci_publish", GitHubActionsImage.UbuntuLatest,
OnPushBranches = new[] { "releases/*" }, OnPushBranches = new[] {"master", "releases/*"},
OnPushTags = new[] { "v*" },
AutoGenerate = true, AutoGenerate = true,
InvokedTargets = new[] {nameof(CiPublish)}, InvokedTargets = new[] {nameof(CiPublish)},
CacheKeyFiles = new string[0], CacheKeyFiles = new string[0],
@@ -84,7 +83,6 @@ class Build : NukeBuild
Target Package => _ => _ Target Package => _ => _
.DependsOn(Test) .DependsOn(Test)
.Executes(() => .Executes(() =>
{ {
DotNetPack(s => s DotNetPack(s => s
.SetProject(SieveProject) .SetProject(SieveProject)