Modified ci-cd definition (on tag pushed) (#159)

Co-authored-by: Nikita Prokhorov <nikita.prokhorov@grse.de>
This commit is contained in:
Nikita Prokhorov 2021-10-12 10:14:12 +03:00 committed by GitHub
parent 6025c7fd44
commit 5ef8843f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

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

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)