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",
|
||||
"enum": [
|
||||
"Ci",
|
||||
"CiPublish",
|
||||
"Clean",
|
||||
"Compile",
|
||||
"Package",
|
||||
"Publish",
|
||||
"Restore",
|
||||
"Test"
|
||||
]
|
||||
@ -84,9 +86,11 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Ci",
|
||||
"CiPublish",
|
||||
"Clean",
|
||||
"Compile",
|
||||
"Package",
|
||||
"Publish",
|
||||
"Restore",
|
||||
"Test"
|
||||
]
|
||||
|
@ -19,6 +19,11 @@ using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
||||
AutoGenerate = true,
|
||||
InvokedTargets = new[] {nameof(Ci)},
|
||||
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
|
||||
{
|
||||
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
||||
@ -83,13 +88,17 @@ class Build : NukeBuild
|
||||
.EnableNoBuild());
|
||||
});
|
||||
|
||||
Target Publish => _ => _
|
||||
.DependsOn(Package)
|
||||
.Executes(() =>
|
||||
{
|
||||
});
|
||||
|
||||
Target Ci => _ => _
|
||||
.DependsOn(Package);
|
||||
|
||||
/// Support plugins are available for:
|
||||
/// - JetBrains ReSharper https://nuke.build/resharper
|
||||
/// - JetBrains Rider https://nuke.build/rider
|
||||
/// - Microsoft VisualStudio https://nuke.build/visualstudio
|
||||
/// - Microsoft VSCode https://nuke.build/vscode
|
||||
Target CiPublish => _ => _
|
||||
.DependsOn(Publish);
|
||||
|
||||
public static int Main() => Execute<Build>(x => x.Package);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user