Skip to content

Commit 7870fd1

Browse files
committed
Add nuget publication to target and action.
1 parent 4fce3f9 commit 7870fd1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/continous-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ jobs:
3535
run: ./build.cmd ContinousIntegration
3636
env:
3737
NugetApiKey: ${{ secrets.NugetApiKey }}
38+
- uses: actions/upload-artifact@v1
39+
with:
40+
name: nuget
41+
path: artifacts/nuget

build/Build.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
OnPushBranches = new[] { "master","feature/*" },
2525
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)