Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Dec 2, 2021
1 parent 7b44a91 commit faa073e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ on:
branches:
- master
- main
tags:
- 'v*.*.*'
paths:
- '**/*.*'
- '!**/*.md'
pull_request:
paths:
- '**/*.*'
- '!**/*.md'

jobs:
windows-latest:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@
name: pr

on:
push:
paths:
- '**/*.*'
- '!**/*.md'
pull_request:
branches:
- master
- main
paths:
- '**/*.*'
- '!**/*.md'

jobs:
windows-latest:
Expand Down
13 changes: 11 additions & 2 deletions build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
GitHubActionsImage.WindowsLatest,
//GitHubActionsImage.UbuntuLatest,
//GitHubActionsImage.MacOsLatest,
OnPullRequestBranches = new [] { "master", "main" },
OnPullRequestBranches = new[] { "master", "main" },
OnPushIncludePaths = new[] { "**/*.*" },
OnPushExcludePaths = new[] { "**/*.md" },
OnPullRequestIncludePaths = new[] { "**/*.*" },
OnPullRequestExcludePaths = new[] { "**/*.md" },
PublishArtifacts = false,
InvokedTargets = new[] { nameof(Compile), nameof(Test), nameof(Pack) },
CacheKeyFiles = new[] { "global.json", "src/**/*.csproj", "src/**/package.json" }),
Expand All @@ -15,7 +19,12 @@
GitHubActionsImage.WindowsLatest,
//GitHubActionsImage.UbuntuLatest,
//GitHubActionsImage.MacOsLatest,
OnPushBranches = new [] { "master", "main" },
OnPushBranches = new[] { "master", "main" },
OnPushTags = new[] { "v*.*.*" },
OnPushIncludePaths = new[] { "**/*.*" },
OnPushExcludePaths = new[] { "**/*.md" },
OnPullRequestIncludePaths = new[] { "**/*.*" },
OnPullRequestExcludePaths = new[] { "**/*.md" },
PublishArtifacts = true,
InvokedTargets = new[] { nameof(Compile), nameof(Test), nameof(Pack), nameof(Publish) },
ImportSecrets = new [] { "NUGET_API_KEY", "MYGET_API_KEY" },
Expand Down

0 comments on commit faa073e

Please sign in to comment.