Skip to content

Commit d008e89

Browse files
authored
Merge pull request #12 from rafek1241/feature/ugrade-workflows
Feature/ugrade workflows
2 parents 28c6c6a + 7870fd1 commit d008e89

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/continous-integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ on:
2020
push:
2121
branches:
2222
- master
23+
- feature/*
2324
pull_request:
2425
branches:
25-
- *
26+
- master
2627

2728
jobs:
2829
ubuntu-latest:
@@ -34,3 +35,7 @@ jobs:
3435
run: ./build.cmd ContinousIntegration
3536
env:
3637
NugetApiKey: ${{ secrets.NugetApiKey }}
38+
- uses: actions/upload-artifact@v1
39+
with:
40+
name: nuget
41+
path: artifacts/nuget

build/Build.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
[GitHubActions("continous-integration",
2222
GitHubActionsImage.UbuntuLatest,
2323
AutoGenerate = true,
24-
OnPushBranches = new[] { "master" },
25-
OnPullRequestBranches= new[] { "*" },
24+
OnPushBranches = new[] { "master","feature/*" },
25+
OnPullRequestBranches = new[] { "master" },
2626
InvokedTargets = new[] { nameof(ContinousIntegration) },
27-
ImportSecrets = new[] { nameof(NugetApiKey) }
27+
ImportSecrets = new[] { nameof(NugetApiKey) },
28+
PublishArtifacts = true
2829
)]
2930
class Build : NukeBuild
3031
{
@@ -103,6 +104,7 @@ class Build : NukeBuild
103104

104105
Target Pack => _ => _
105106
.DependsOn(Compile)
107+
.Produces(NugetDestinationDirectory / "*.nupkg")
106108
.Executes(() =>
107109
{
108110
DotNetPack(s => s

0 commit comments

Comments
 (0)