mirror of
https://github.com/Biarity/Sieve.git
synced 2025-01-19 00:22:48 +01:00
Prepare publish on releases/* and master
This commit is contained in:
parent
028ab1d196
commit
79c825cb7a
32
.github/workflows/ci_publish.yml
vendored
Normal file
32
.github/workflows/ci_publish.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# <auto-generated>
|
||||||
|
#
|
||||||
|
# This code was generated.
|
||||||
|
#
|
||||||
|
# - To turn off auto-generation set:
|
||||||
|
#
|
||||||
|
# [GitHubActions (AutoGenerate = false)]
|
||||||
|
#
|
||||||
|
# - To trigger manual generation invoke:
|
||||||
|
#
|
||||||
|
# nuke --generate-configuration GitHubActions_ci_publish --host GitHubActions
|
||||||
|
#
|
||||||
|
# </auto-generated>
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
name: ci_publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- 'releases/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ubuntu-latest:
|
||||||
|
name: ubuntu-latest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Run './build.cmd CiPublish'
|
||||||
|
run: ./build.cmd CiPublish
|
@ -65,9 +65,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"Ci",
|
"Ci",
|
||||||
|
"CiPublish",
|
||||||
"Clean",
|
"Clean",
|
||||||
"Compile",
|
"Compile",
|
||||||
"Package",
|
"Package",
|
||||||
|
"Publish",
|
||||||
"Restore",
|
"Restore",
|
||||||
"Test"
|
"Test"
|
||||||
]
|
]
|
||||||
@ -84,9 +86,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"Ci",
|
"Ci",
|
||||||
|
"CiPublish",
|
||||||
"Clean",
|
"Clean",
|
||||||
"Compile",
|
"Compile",
|
||||||
"Package",
|
"Package",
|
||||||
|
"Publish",
|
||||||
"Restore",
|
"Restore",
|
||||||
"Test"
|
"Test"
|
||||||
]
|
]
|
||||||
|
@ -19,6 +19,11 @@ using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
|||||||
AutoGenerate = true,
|
AutoGenerate = true,
|
||||||
InvokedTargets = new[] {nameof(Ci)},
|
InvokedTargets = new[] {nameof(Ci)},
|
||||||
CacheKeyFiles = new string[0])]
|
CacheKeyFiles = new string[0])]
|
||||||
|
[GitHubActions("ci_publish", GitHubActionsImage.UbuntuLatest,
|
||||||
|
OnPushBranches = new[] {"master", "releases/*"},
|
||||||
|
AutoGenerate = true,
|
||||||
|
InvokedTargets = new[] {nameof(CiPublish)},
|
||||||
|
CacheKeyFiles = new string[0])]
|
||||||
class Build : NukeBuild
|
class Build : NukeBuild
|
||||||
{
|
{
|
||||||
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
||||||
@ -83,13 +88,17 @@ class Build : NukeBuild
|
|||||||
.EnableNoBuild());
|
.EnableNoBuild());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Target Publish => _ => _
|
||||||
|
.DependsOn(Package)
|
||||||
|
.Executes(() =>
|
||||||
|
{
|
||||||
|
});
|
||||||
|
|
||||||
Target Ci => _ => _
|
Target Ci => _ => _
|
||||||
.DependsOn(Package);
|
.DependsOn(Package);
|
||||||
|
|
||||||
/// Support plugins are available for:
|
Target CiPublish => _ => _
|
||||||
/// - JetBrains ReSharper https://nuke.build/resharper
|
.DependsOn(Publish);
|
||||||
/// - JetBrains Rider https://nuke.build/rider
|
|
||||||
/// - Microsoft VisualStudio https://nuke.build/visualstudio
|
|
||||||
/// - Microsoft VSCode https://nuke.build/vscode
|
|
||||||
public static int Main() => Execute<Build>(x => x.Package);
|
public static int Main() => Execute<Build>(x => x.Package);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user