Skip to content

Commit

Permalink
(build) Change to publish tags on appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Sep 15, 2020
1 parent 5cc183f commit 18b0f3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- "release/**"
- "hotfix/**"
- "feature/**"
tags:
- '*'
paths-ignore:
- "README.md"
pull_request:
Expand Down
15 changes: 13 additions & 2 deletions recipe.cake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@

Environment.SetVariableNames();

var platform = PlatformFamily.Linux;
var provider = BuildProviderType.GitHubActions;

// Because GitVersion do not play nice with GitHub Action, we need to do the publishing
// on appveyor instead
if (HasEnvironmentVariable("APPVEYOR") && EnvironmentVariable("APPVEYOR_REPO_TAG", false))
{
platform = PlatformFamily.Windows;
provider = BuildProviderType.AppVeyor;
}

BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
Expand All @@ -18,8 +29,8 @@ BuildParameters.SetParameters(
shouldRunCoveralls: false,
shouldUseDeterministicBuilds: true,
shouldUseTargetFrameworkPath: false,
preferredBuildAgentOperatingSystem: PlatformFamily.Linux,
preferredBuildProviderType: BuildProviderType.GitHubActions);
preferredBuildAgentOperatingSystem: platform,
preferredBuildProviderType: provider);

ToolSettings.SetToolSettings(context: Context);

Expand Down

0 comments on commit 18b0f3f

Please sign in to comment.