From 5ef8843f3d48d792775a3fbf08e401c8c214989b Mon Sep 17 00:00:00 2001 From: Nikita Prokhorov Date: Tue, 12 Oct 2021 10:14:12 +0300 Subject: [PATCH] Modified ci-cd definition (on tag pushed) (#159) Co-authored-by: Nikita Prokhorov --- .github/workflows/ci_publish.yml | 3 ++- build/Build.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_publish.yml b/.github/workflows/ci_publish.yml index 28404fd..1ff5730 100644 --- a/.github/workflows/ci_publish.yml +++ b/.github/workflows/ci_publish.yml @@ -19,8 +19,9 @@ name: ci_publish on: push: branches: - - master - 'releases/*' + tags: + - 'v*' jobs: ubuntu-latest: diff --git a/build/Build.cs b/build/Build.cs index 2810ed6..3146ffc 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -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)