Skip to content

Commit fb194e8

Browse files
committed
GitHub Actions use win2019 & only push package on Windows
1 parent 0b2774b commit fb194e8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [windows-latest, ubuntu-latest, macos-latest]
17+
os: [windows-2019, ubuntu-latest, macos-latest]
1818
steps:
1919
- name: Get the sources
2020
uses: actions/checkout@v2

build.cake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ Task("Publish-NuGet")
236236

237237
Task("Push-GitHub-Packages")
238238
.IsDependentOn("Package")
239-
.WithCriteria(GitHubActions.IsRunningOnGitHubActions && !GitHubActions.Environment.PullRequest.IsPullRequest)
239+
.WithCriteria(
240+
GitHubActions.IsRunningOnGitHubActions &&
241+
!GitHubActions.Environment.PullRequest.IsPullRequest &&
242+
IsRunningOnWindows())
240243
.Does(() => {
241244

242245
// Resolve the API key.

0 commit comments

Comments
 (0)