mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-21 21:12:50 +01:00
Modified ci-cd definition (on tag pushed) (#159)
Co-authored-by: Nikita Prokhorov <nikita.prokhorov@grse.de>
This commit is contained in:
parent
6025c7fd44
commit
5ef8843f3d
3
.github/workflows/ci_publish.yml
vendored
3
.github/workflows/ci_publish.yml
vendored
@ -19,8 +19,9 @@ name: ci_publish
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
|
||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-latest:
|
ubuntu-latest:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user