Skip to content

Commit

Permalink
Enable access to a GitHub token in CI workflow, only build docs when …
Browse files Browse the repository at this point in the history
…'docs/**' is updated
  • Loading branch information
flyingpie committed Apr 28, 2024
1 parent 8ae3f1a commit 2e21a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
paths: ["docs/**"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions src/01-Build/NukeBuild/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
GitHubActionsImage.WindowsLatest,
FetchDepth = 0,
OnPushBranches = ["master"],
EnableGitHubToken = true,
InvokedTargets = [nameof(PublishRelease)])]
[SuppressMessage("Major Bug", "S3903:Types should be defined in named namespaces", Justification = "MvdO: Build script.")]
public sealed class Build : NukeBuild
Expand Down

0 comments on commit 2e21a83

Please sign in to comment.