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)