3 Commits

Author SHA1 Message Date
Nikita Prokhorov
5ef8843f3d Modified ci-cd definition (on tag pushed) (#159)
Co-authored-by: Nikita Prokhorov <nikita.prokhorov@grse.de>
2021-10-12 09:14:12 +02:00
ITDancer13
6025c7fd44 Release new versions of Sieve via CI (#158) 2021-08-31 10:13:01 +02:00
Luciano Delucchi
1a9371a636 Update README (#155)
Small typo
2021-08-29 16:54:07 +02:00
3 changed files with 6 additions and 3 deletions

View File

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

View File

@@ -75,7 +75,7 @@ Where `SieveCustomSortMethodsOfPosts` for example is:
```C#
public class SieveCustomSortMethods : ISieveCustomSortMethods
{
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
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
{
var result = useThenBy ?
((IOrderedQueryable<Post>)source).ThenBy(p => p.LikeCount) : // ThenBy only works on IOrderedQueryable<TEntity>

View File

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