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: on:
push: push:
branches: branches:
- master
- 'releases/*' - 'releases/*'
tags:
- 'v*'
jobs: jobs:
ubuntu-latest: ubuntu-latest:

View File

@ -21,7 +21,8 @@ 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[] {"master", "releases/*"}, OnPushBranches = new[] { "releases/*" },
OnPushTags = new[] { "v*" },
AutoGenerate = true, AutoGenerate = true,
InvokedTargets = new[] {nameof(CiPublish)}, InvokedTargets = new[] {nameof(CiPublish)},
CacheKeyFiles = new string[0], CacheKeyFiles = new string[0],
@ -83,6 +84,7 @@ class Build : NukeBuild
Target Package => _ => _ Target Package => _ => _
.DependsOn(Test) .DependsOn(Test)
.Executes(() => .Executes(() =>
{ {
DotNetPack(s => s DotNetPack(s => s
.SetProject(SieveProject) .SetProject(SieveProject)