forked from Kylemc1413/SongCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.CI.GitHubActions.cs
30 lines (29 loc) · 1.12 KB
/
Build.CI.GitHubActions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Nuke.Common.CI;
using Nuke.Common.CI.GitHubActions;
[GitHubActions(
"pr",
GitHubActionsImage.UbuntuLatest,
AutoGenerate = false,
CacheKeyFiles = new string[0],
EnableGitHubToken = false,
FetchDepth = 0, // Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Make sure to fetch whole git history, in order to get GitVersion to work.
ImportSecrets = new[] { "SIRA_SERVER_CODE" },
InvokedTargets = new[] { nameof(Compile) },
OnPushBranches = new[] { "master" },
OnPullRequestBranches = new[] { "master" },
PublishArtifacts = true)]
[GitHubActions(
"publish",
GitHubActionsImage.UbuntuLatest,
AutoGenerate = false,
CacheKeyFiles = new string[0],
EnableGitHubToken = true,
FetchDepth = 0, // Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Make sure to fetch whole git history, in order to get GitVersion to work.
ImportSecrets = new[] { "SIRA_SERVER_CODE" },
InvokedTargets = new[] { nameof(CreateGitHubRelease) },
OnPushTags = new[] { "*.*.*" },
PublishArtifacts = true)]
partial class Build
{
[CI] readonly GitHubActions GitHubActions;
}