Skip to content

Commit

Permalink
GitHub Actions use win2019 & only push package on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Mar 27, 2022
1 parent 0b2774b commit fb194e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-2019, ubuntu-latest, macos-latest]
steps:
- name: Get the sources
uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ Task("Publish-NuGet")

Task("Push-GitHub-Packages")
.IsDependentOn("Package")
.WithCriteria(GitHubActions.IsRunningOnGitHubActions && !GitHubActions.Environment.PullRequest.IsPullRequest)
.WithCriteria(
GitHubActions.IsRunningOnGitHubActions &&
!GitHubActions.Environment.PullRequest.IsPullRequest &&
IsRunningOnWindows())
.Does(() => {
// Resolve the API key.
Expand Down

0 comments on commit fb194e8

Please sign in to comment.